[R] Still having a problem with Rcmd - TMPDIR
Andy Bunn
abunn at montana.edu
Tue Apr 9 01:24:28 CEST 2002
Hello R-users:
I'm experiencing difficulty in building a package in R 1.4.1 under Windows
2000. When I run Rcmd I get this:
F:\r\library>f:\r\bin\rcmd check ringsim
Please set TMPDIR to a valid temporary directory
F:\r\library>f:\r\bin\rcmd build ringsim
Please set TMPDIR to a valid temporary directory
This problem was discussed over a year ago - the problem was attributed to a
Perl bug. The CHECK file was amended in the build and indeed mine has the
line:
unless (-e $tmpdir);
It was thought that the -d was the bug. I added a print statement to CHECK
as per B. Ripley's suggestion:
$WINDOWS = ($OS eq "windows");
if($WINDOWS) {
$TMPDIR = R_getenv("TMPDIR", "/TEMP");
print "tmpdir is $tmpdir\n"; # added line
die "Please set TMPDIR to a valid temporary directory\n"
unless (-e $tmpdir);
$R_exe = "Rterm.exe";
$LATEX = "latex";
$MAKE = "make";
}
The output is below:
F:\r\library>f:\r\bin\rcmd check ringsim
tmpdir is
Please set TMPDIR to a valid temporary directory
So it does indeed appear that there is no tmpdir. How can I set this
variable? The default temp directory on my machine is e:\temp but all other
applications see it. I'm running the latest perl (v5.6.1 built for
MSWin32-x86-multi-thread).
Any help appreciated.
Thanks in advance,
Andy
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list