[R] rcmd build

Thomas Stockton stockton at neptuneandco.com
Thu Jan 25 19:46:34 CET 2001

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

    $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 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

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