Possible Duplicate:
Forcing garbage collection to run in R with the gc() command
I was wondering if some of my code would benefit from executing a garbage collection - i.e.
> gc()
From the gc help, I read "A call of gc causes a garbage collection to take place. This will also take place automatically without user intervention, and the primary purpose of calling gc is for the report on memory usage".
I'm pretty careful to remove large objects after they are no longer needed, but I feel like the speed of my operations continues to decrease during a session. I haven't noticed a substantial improvement through using gc() periodically - and it appears from the above description that this operation happens automatically from time to time. Does anyone have suggestions on its proper application?
Cheers