Re: [R] tempfile problem

2010-06-20 Thread Ben Madin
Thanks all for the advice, I'm using the time with parts of a second (to 6 decimal places) hashed, and so I ran a loop : (my attempt at repeatable code!) library(digest) op - options(digits.secs=6) a - NA for (i in 1:5) { a[i] - digest(Sys.time(), algo='crc32') } options(op) and

[R] tempfile problem

2010-06-17 Thread Ben Madin
G'day all, The documentation for tempfile states : The names are very likely to be unique among calls to tempfile in an R session and across simultaneous R sessions. The filenames are guaranteed not to be currently in use. My problem I think relates to the second part of the sentence, which

Re: [R] tempfile problem

2010-06-17 Thread jim holtman
take the name returned by tempfile and append the current TOD; this should make it fairly unique and will let you do some cleanup if you are going to keep the files around for some length of time. On Thu, Jun 17, 2010 at 12:43 PM, Ben Madin li...@remoteinformation.com.au wrote: G'day all, The

Re: [R] tempfile problem

2010-06-17 Thread Duncan Murdoch
On 17/06/2010 12:43 PM, Ben Madin wrote: G'day all, The documentation for tempfile states : The names are very likely to be unique among calls to tempfile in an R session and across simultaneous R sessions. The filenames are guaranteed not to be currently in use. My problem I think relates

Re: [R] tempfile problem

2010-06-17 Thread Romain Francois
Le 17/06/10 18:59, Duncan Murdoch a écrit : On 17/06/2010 12:43 PM, Ben Madin wrote: G'day all, The documentation for tempfile states : The names are very likely to be unique among calls to tempfile in an R session and across simultaneous R sessions. The filenames are guaranteed not to be