[R] how to free memory space ??
jgentry at jimmy.harvard.edu
Fri Apr 16 14:52:07 CEST 2004
> I thought that 'rm' function would free the memory used for the
> deleted object, but it doesn't seem to be the case, as I don't observe
> any change in the allocated memory for R in the windows task manager.
> I ask this question because sometimes I have encounter a '... ran out
> of memory' error - for a calculation that previously worked fine - I
> did notice that this error often occurs when other objects are using a
> lot of memory. Closing/relaunching R and redoing the calculation helps
> under these circumstances.....
gc() will reclaim memory from objects which are no longer being used.
More information about the R-help