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/ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.