[R] Rtemp directories accumulating over time

kjetil@acelerate.com kjetil at acelerate.com
Wed Apr 28 02:02:32 CEST 2004


Hola!

There is a nuisance that the number of directories with name starting 
Rtmp (and always empty) in my temp directory is increasing over time. 

I put the following in my  .Rprofile:

tmp0001 <- tempdir()
setHook( packageEvent("base","onUnload"), 
      function(...) unlink( tmp0001, recursive=TRUE) )


which solves part of the problem, but not all. So there are also 
other tmpdirs made by R. Why, where, and why are they not removed at 
exit (when their content are removed)?

Kjetil Halvorsen




More information about the R-help mailing list