Peng Yu
2009-Sep-07 00:55 UTC
[R] Why tempdir() always give me the same results in the same session?
Hi, tempdir() always gives me the same result. Should it give a different result each time I call it?> tempdir()[1] "/tmp/RtmppB72wH"> tempdir()[1] "/tmp/RtmppB72wH" Regards, Peng
cls59
2009-Sep-07 01:17 UTC
[R] Why tempdir() always give me the same results in the same session?
Peng Yu wrote:> > > tempdir() always gives me the same result. Should it give a different > result each time I call it? > >The help page for tempdir() contains the following explanation of the return value: ?tempdir ... For tempdir, the path of the per-session temporary directory. I would interpret that to mean that each time you start R a temporary directory is assigned which retains a static value until you close R and then open it again later. -Charlie ----- Charlie Sharpsteen Undergraduate Environmental Resources Engineering Humboldt State University -- View this message in context: http://www.nabble.com/Why-tempdir%28%29-always-give-me-the-same-results-in-the-same-session--tp25323681p25323805.html Sent from the R help mailing list archive at Nabble.com.