[R] Re: cannot allocate ...

Mpiktas mpiktas at delfi.lt
Tue Nov 19 07:42:58 CET 2002


Hi,


> Does anyone know how I can avoid this error?
> 
> Error: cannot allocate vector of size 554 Kb 

I assume that you are using R under windows. Try functions memory.size()
and memory.limit(). The first will show how much memory R uses and the
second will set the maximum memory size R can use. Something like

memory.limit(512)

will do the trick. It tells R that it can use up to 512MB of memory. Do
?memory.limit for more details.

I think that these functions are only in R build for Windows. If you
can't avoid using a lot of memory I shoud advise you (based on my
personal experience) to use R under Linux. 

Vaidotas Zemlys

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