Re: [R] Rtemp directories accumulating over time

2004-04-30 Thread Prof Brian Ripley
I've found a couple of things. The issue is a `sharing violation', which although it is documented that another process is accessing the dir, it can be the same process. Guido's code in R_ShowFiles opened a FindFirst handle and failed to close it, so sessions using file.show() on temporary fil

Re: [R] Rtemp directories accumulating over time

2004-04-28 Thread Prof Brian Ripley
On Wed, 28 Apr 2004 [EMAIL PROTECTED] wrote: > On 28 Apr 2004 at 13:53, Prof Brian Ripley wrote: > > > On Tue, 27 Apr 2004 [EMAIL PROTECTED] wrote: > > > > . > . > > I don't see why: package base is never unloaded so that hook function > > is never run. (Indeed, no package/namespace is unloade

Re: [R] Rtemp directories accumulating over time

2004-04-28 Thread kjetil
On 28 Apr 2004 at 13:53, Prof Brian Ripley wrote: > On Tue, 27 Apr 2004 [EMAIL PROTECTED] wrote: > . . > I don't see why: package base is never unloaded so that hook function > is never run. (Indeed, no package/namespace is unloaded except by > explicit user action, in particular not when R is

Re: [R] Rtemp directories accumulating over time

2004-04-28 Thread Prof Brian Ripley
On Tue, 27 Apr 2004 [EMAIL PROTECTED] wrote: > 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","onUnlo