Skip to content
Back to formatted view

Raw Message

Message-ID: <4A0ECF39.5050603@statistik.tu-dortmund.de>
Date: 2009-05-16T14:35:37Z
From: Uwe Ligges
Subject: Memory size problems in R
In-Reply-To: <67f7a8090905151246p4e57dd90gade4b55dbfdabf93@mail.gmail.com>

Fernando Jos? Nascimento Sebasti?o wrote:
> Dear all,
> 
> I have some problems how to increase memory in R.
> I tried to start R by calling e.g. :(in the Properties, Shortcut tab, Target
> field)
> 
> Rgui.exe --max-mem-size=2Gb  (Is this correct?....)
> 
> But the error message still continue:
> 
>> X<-princomp(MAT2D.AltGeop61.90)
> Error: cannot allocate vector of size 445.4 Mb

Note, this just means that the next chunk to be allocated is 445.4 Mb, 
it does not mean the amount will be sufficient for your problem .


>> memory.size()
> [1] 456.01
>> memory.limit()
> [1] 4095

That's strange, because you have not asked for 4Gb.
Do you have some other setting (perhaps in your startup code) that 
increases memory size to 4Gb after you started R?


>> dim(MAT2D.AltGeop61.90)
> [1] 10957  5328
> 
> I use R 2.9.0 in Windows XP, with 40 GB on the disk and 7 GB of RAM.


64-bit version of Windows XP, I guess?



> What can I do?


Use a 64-bit version of R [i.e. something on a LInux machine or perhaps 
the recently available commercial 64-bit version for Windows] or 
rephrase/-code your problem.

Uwe Ligges




> I would appreciate somebody to help with any ideia.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.