[R] Memory Problems

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Nov 19 15:53:01 CET 1999


Joanna Mills <millsje at mscs.dal.ca> writes:

> I have an R program which basically reads in data. It then
> calls a  C program which performs numerical integration until converging
>  to a solution.  The result is then passed back from C to R.
> Unfortunately, when running this program, the virtual
> memory associated with it explodes -> 2GIG!. Does anyone know what might
> be causing this or can suggest possiblie ways to debug?

Sounds as if the C routine is allocating memory and not freeing it?

You may want to check up on R_alloc (now where did we document that? I
can find various hints in help(Memory), help(dyn.load), and help(.C),
and in the R-external that will be in the upcoming release, but
nothing really coherent.)  

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list