[R] Memory Allocation

Shawn Way sway at tanox.com
Fri Mar 22 18:32:23 CET 2002


I'm trying to run a small batch program under the windows version of R
1.5.0.  One thing I'm noticing is that if I source the program under Rgui.
The application will work just fine, but if I use Rcmd BATCH --no-save
-max-mem-size=500M water.R as the batch process, it will not finish. (Or
even load the first file)

The programs load 4 CSV files at ~ 8 MB each, they are merged into two
data.frames and the original data is purged.

The error I get from the output file is:

>PFWA <-
read.csv("c:/temp/PFWA.csv",header=FALSE,strip.white=TRUE,na.strings=c("NULL
"),col.names=c("DateTime","Flow","Volume"))
Error: cannot allocate vector of size 235 Kb
In addition: Warning message: 
Reached total allocation of 500Mb: see help(memory.size) 
Execution halted

Any thoughts?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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