[R] R dynamic memory management

Maura E Monville maura.monville at gmail.com
Wed Oct 10 00:53:01 CEST 2007


I have a loop that processes all the raw data files in agiven directory.
It should allocate only the memory to accomodate the filenames list.
Each file is loaded into RAM one at a time and saved to another
directory after processing. The R script runs fine but it had some
memory problems so it was terminated before getting to the end of the
list.
This is a Windows XP desktop with ~ 1GB RAM
In the following I am pasting R messages. I would appreciate some
suggestion about memory handling:

Error: cannot allocate vector of size 32.0 Mb
In addition: Warning messages:
1: Reached total allocation of 958Mb: see help(memory.size) in: x[[i]] <- y
2: Reached total allocation of 958Mb: see help(memory.size) in: x[[i]] <- y
3: Reached total allocation of 958Mb: see help(memory.size) in: x[[i]] <- y
4: Reached total allocation of 958Mb: see help(memory.size) in: x[[i]] <- y


-- 
Maura E.M



More information about the R-help mailing list