[R] Error: cannot allocate vector of size xxx Mb
Philipp Pagel
p.pagel at wzw.tum.de
Thu Aug 5 10:27:00 CEST 2010
On Thu, Aug 05, 2010 at 03:53:21AM -0400, Ralf B wrote:
> > a <- rnorm(5000000)
> Error: cannot allocate vector of size 38.1 Mb
>
> When running memory.limit() I am getting this:
>
> memory.limit()
> [1] 2047
>
> Which shows me that I have 2 GB of memory available. What is wrong?
> Shouldn't 38 MB be very feasible?
>From what I gather fomr ?memory.limit it does not tell you how much
memory it currently available. So my guess is that you have som rather
large objects in your workspace already and thus there is not enough
space left for you vectors.
cu
Philipp
--
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/
More information about the R-help
mailing list