[R] Memory allocation problem

Roland Rau roland.rproject at gmail.com
Tue Aug 12 17:39:56 CEST 2008


Jamie Ledingham wrote:
> becomes too much to handle by the time the loop reaches 170.  Has anyone
> had any experience of this problem before?  Is it possible to 'wipe' R's
> memory at the end of each loop - all results are plotted and saved or
> written to text file at the end of each loop so this may be the ideal
> solution.

Besides using gc() (-> email by John Kerpel), you might also consider to 
remove all objects:
rm(list=ls())

I hope this helps,
Roland



More information about the R-help mailing list