[R] Still having a problem with Rcmd - TMPDIR
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue Apr 9 08:25:43 CEST 2002
Andy Bunn wrote:
>
> 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).
>From ..../src/gnuwin32/readme.packages:
"You may need to set TMPDIR to a suitable temporary directory: the
default is c:\TEMP."
How to set environment variables should be explained in your Windows
2000 help. You can set this to your temp directory e:\temp.
(Control Panel - System - anywhere ??? Sorry, cannot remember the right
way on Win2k, not installed on any machine around here).
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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