[R] /tmp/ gets filled up fast

From: Alessandro Gagliardi <alessandro_at_gagliardi.name>
Date: Fri, 25 May 2007 14:42:37 -0400


Dear useRs,

I'm running some pretty big R scripts using a PBS that calls upon the RMySQL library and it's filling up the /tmp/ directory with Rtmp* files. I thought the problem might have come from scripts crashing and therefore not getting around to executing the dbDisconnect() function, but I just ran a script that exited correctly and it still left a giant file in /tmp/ without cleaning up after itself. I'm running all of my scripts using the --vanilla tag (saving the data I need either into a separate .RData file or into the MySQL database). Is there some other tag I should be using or some command I can put at the end of my script to remove the Rtmp file when it's done?

Thank you,
-Alessandro

Alessandro
We need to resolve the issue somehow better way... /tmp/ gets filled up fast with your R tasks...

*$> du -scm RtmpvKEqwr/

804     RtmpvKEqwr/
804     total

root_at_node26:/tmp
$> ls -ld RtmpvKEqwr/
0 drwx------ 2 eklypse eklypse 80 2007-05-24 15:18 RtmpvKEqwr//

root_at_node26:/tmp
$> df .

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda6              1052184   1052184         0 100% /tmp


I had to remove it...

check if there is a way to use some other directory may be? or properly clean up??

On Wed, 23 May 2007, Alessandro Gagliardi wrote:

> Well, this is a real problem then. Because I'm generating tables that
> R cannot get into MySQL because they are too big and it times out
> before it's done.



R-help_at_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 and provide commented, minimal, self-contained, reproducible code. Received on Fri 25 May 2007 - 18:57:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 May 2007 - 19:31:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.