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. ______________________________________________ R-help@r-project.org 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.