[R] Keeping memory usage low for a big script

From: Ken Termiso <jerk_alert_at_hotmail.com>
Date: Thu 14 Jul 2005 - 23:46:01 EST


Hi all,

I've got a script that I run on several computers, some with much less ram than others, and I would like to try and keep the memory usage as low as possible. The script creates variables to store intermediate results of calculations, and then at the end writes a text file with the results of the calculations.

Is a quick and dirty way to accomplish this to use rm() to delete objects no longer in use, and then run gc()? ...or is there a better way?

Thanks in advance,
Ken



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 14 23:51:21 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:40 EST