Displaying 1 result from an estimated 1 matches for "rtmp0xy4xd".
2006 Oct 30
3
Problem setting TMPDIR on the fly
Hi folks,
I'm having a spot of bother with tempdir(). If I set the environment
variable TMPDIR in my shell prior to invoking R it works as expected:
> Sys.getenv("TMPDIR")
TMPDIR
"/eurotempest/tmp/R"
> tempdir()
[1] "/eurotempest/tmp/R/Rtmp0xY4XD"
However if I don't set it prior to entry, but attempt to set it from
within the current session, the change is not detected/respected:
> Sys.getenv("TMPDIR")
TMPDIR
""
> Sys.putenv(TMPDIR = "/eurotempest/tmp/R/")
> Sys.getenv("...