[R] How to increases the Memory size for R in Batch mode

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat May 25 13:10:04 CEST 2002

"Rangrej, Jagadish" wrote:
> hello everybody!!
> I am using "Rcmd BATCH" command to run simulation on R in batch mode on
> win98 machine.
> Would it be possible to increase the memory size of R; 

Yes, see below.

> if so how and what is the default memory size used, 


> and what is the limit to which I can increase the memory size.

That's all mentioned on the help pages and mail archives in detail.
On a 32-bit OS that has an appropriate memory managment, up to 2GB, in
I think there are reasons of a 512MB limit (at least in efficiency) on
the (more or less) DOS based Windows versions (e.g. Win98). There
something about that in the mailing list archives, if you are

> My machine configurations:
>         512MB Ram with Intel P-III processor working at 1GHz speed.
>         Win98 and R 1.4.1
> Thanking you all in advance for your help,

This is a FAQ and mentioned in the R for Windows FAQs and in the help
for ?Memory and the mailing list archives.

The solution is to use the option --max-mem-size ...
Something like 
  Rcmd BATCH --max-mem-size=450M yourRfile.R
should do the trick.

Uwe Ligges
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