[R] rcmd build

About this list Date view Thread view Subject view Author view Other groups

Subject: [R] rcmd build
From: Thomas Stockton (stockton@neptuneandco.com)
Date: Fri 26 Jan 2001 - 04:46:34 EST


Message-ID: <NEBBIAGCDACDCIIENIIHMEJDCPAA.stockton@neptuneandco.com>

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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:44 EST