[R] Is there any help for "Cannot allocate vector size of xxxKB"

Mark Myatt mark at myatt.demon.co.uk
Thu Mar 22 11:42:47 CET 2001


Han Lai <hlai at whsun1.wh.whoi.edu> writes:
>Hi,
>
>As I run R long enough, for example if I keep running different glm()
>models and each model has 500 bootsraps, I alway get the error message
>on "cannot allocat vector size of xxxKB".  I have 64MB of RAM and run
>Windows98.  Is there any hope to fix it other than cut my bootstrap
>short.


It would help to know when the error occurs ... I guess somewhere in
that 500 bootstaps ... I suppose that you are saving some of the output
of glm() between samples. Perhaps you are saving a whole glm() object
each time. glm() objects which can be very big. You might have better
luck if you extract and save only the information you want.

An alternative would be to save output incrementally to a file and rm()
temporary objects between fits.

Mark

--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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