[R] building packages in Windows under R 1.2.1
Yves Gauvreau
cyg at sympatico.ca
Mon Jan 22 13:35:55 CET 2001
Hi,
Could it be because of is PATH and/or RHOME. He says it still works with R
1.2.0.
Yves Gauvreau
B.E.F.P. Universite du Quebec a Montreal
cyg at sympatico.ca
> -----Message d'origine-----
> De : owner-r-help at stat.math.ethz.ch
> [mailto:owner-r-help at stat.math.ethz.ch]De la part de Prof Brian Ripley
> Envoye : Monday, January 22, 2001 4:15 AM
> A : John Fox
> Cc : r-help at stat.math.ethz.ch
> Objet : Re: [R] building packages in Windows under R 1.2.1
>
>
> On Sun, 21 Jan 2001, John Fox wrote:
>
> > Dear list members,
> >
> > I'm experiencing difficulty in building a package in R 1.2.1
> under Windows
> > 2000, using, as far as I can tell, the same approach that I used
> > successfully in R 1.2.0.
> >
> > More specifically, "rcmd build" produces the following error:
> >
> > C:\rw1021\src\library>c:\rw1021\bin\rcmd build car
> > Please set TMPDIR to a valid temporary directory
> >
> > It looked to me as if "rcmd build" wanted an environment variable called
> > TMPDIR, so I set one, but this didn't help.
>
> Yes, it does (and did under 1.2.0 unless c:/TEMP exists, which I think it
> usually does under Windows 2000). In this version it actually tests for
> the existence of the directory.
>
> Which Perl version do you have? I am baffled: this works for me under NT
> and 98 with three different Perl versions. The symptom is that whatever
> Perl things $TMPDIR is does not exist. Can you print out and check via
>
> 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 (-d $TMPDIR);
>
>
> >
> > Curiously, "rcmd build" under R.1.2.0 (which is also on my
> system) still works:
> >
> > C:\rw1021\src\library>c:\rw1020\bin\rcmd build car
> > * checking for file `car/DESCRIPTION' ... OK
> > * preparing `car':
> > * checking whether `INDEX' is up-to-date ... NO
> > * creating new INDEX
> > * checking whether `data/00Index' is up-to-date ... NO
> > * creating new data/00Index
> > * removing junk files
> > * building `car_0.6-0.tar.gz'
> >
> > After this, I can use "rcmd check" and "rcmd install" from
> version 1.2.1 to
> > finish the job:
> >
> > C:\rw1021\src\library>c:\rw1021\bin\rcmd check car
> > * checking for working latex ... OK
> > * using log directory C:/rw1021/src/library/car.Rcheck
> >
> > . . .
>
> Well, one usually does check before build, and check contains identical
> code for the test, so I am even more baffled.
>
> --
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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