I''m having trouble building a package (named reap) under R1.2.1
Windows2000. I
successfully ran
d:\R\src\library rcmd check reap
but when I run
d:\R\src\library rcmd build reap
I get the message:
Please set TMPDIR to a valid temporary directory
I''ve tried setting TMPDIR to d:/temp via:
1) My Computer properties environment variables,
2) at the command line,
3) in Rprofile, and
4) in .Renviron
with no success. In looking at the Perl script "build" the error seems
to come
from:
if($WINDOWS){
$tmpdir = R_getenv("TMPDIR", "/TEMP");
die "Please set TMPDIR to a valid temporary directory\n"
unless (-d $TMPDIR);
$R_exe = "Rterm.exe";
$MAKE = "make";
@knownoptions = ("help|h", "version|v",
"binary", "docs:s",
"use-zip", "use-zip-help", "use-zip-data");
}
I''ve read "Writing R Extension" and the various FAQs and help
but haven''t be
able to figure out what R_getenv() is doing.
Thanks for your help!
Tom
___________________________________________________________
Tom Stockton voice: (505) 662-0707 ext 17
Neptune and Company fax: (505) 662-0500
1505 15th St. Suite B stockton at neptuneandco.com
Los Alamos, NM 87544-3063 LANL mailstop M969
www.neptuneandco.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 25 Jan 2001, Thomas Stockton wrote:> I''m having trouble building a package (named reap) under R1.2.1 Windows2000. I > successfully ran > d:\R\src\library rcmd check reap > but when I run > d:\R\src\library rcmd build reap > I get the message: > Please set TMPDIR to a valid temporary directoryThis is a Perl bug on Windows 2000. Replace unless (-d $TMPDIR); by unless (-e $tmpdir); and the same in check. Strangely, the very same Perl code works in about check and about 10 other places and fails in just this one, and it only fails on Windows 2000, not NT4 nor 98. Sorry, but if perfectly correct Perl fails on your OS, you are in trouble and we can''t anticipate it. John Fox, who reported this earlier, confirmed that the above workaround worked for him. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._