[R] building packages in Windows under R 1.2.1

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Feb 26 09:54:02 CET 2001


Prof Brian Ripley wrote [22.01.2001]:

> The code is new in 1.2.1, and identical code in Rcmd clean works. It looks 
> like a Windows Perl bug. On my machines under NT4 and 98 this works 
> because -d foo seems to be always true! It is probably different on 2000. 
>
> Try changing the line 
>
>        unless (-d $TMPDIR); 
>
> to 
>        unless (-e $tmpdir); 
>
> It may also depend on the Perl version. We know that system() is broken 
> in builds later than ca 619, for example. 
>
> It's strange that after years of problems with the make and shell, Perl 
> is now misbehaving. 

[OS: WinNT 4.0]

Looks like this is not the only problem: Since R-1.2.0 I didn't
installed packages from source in windows -- and I am sure, it worked
for me with R-1.2.0. But it didn't work with R-1.2.1 any more (see
output below). All the time (for R-1.2.0 and R-1.2.1) with the same
versions of the C-compiler, Perl (5.6.0, build 623), etc.

Here the output of a try with acepack (but the same with other
packages):

********************************************

C:\user\ligges\R>rcmd install acepack_1.2-2.tar.gz

make: Entering directory `/cygdrive/t/r/src/gnuwin32'
make DLLNM=  EXTRADOCS= \
  -C C:/user/ligges/R/R.INSTALL/acepack PKG=acepack RHOME=t:/r
RLIB=t:/r/library \
  -f t:/r/src/gnuwin32/MakePkg
make[1]: Entering directory `/user/ligges/R/R.INSTALL/acepack'
if [ ! -f ./TITLE -a -f ./DESCRIPTION ] ; then \
  gawk -f t:/r/src/gnuwin32/maketitle.awk ./DESCRIPTION > TITLE; \
fi
---------- Making package acepack ------------
mkdir -p t:/r/library/acepack
cp -r   ./DESCRIPTION  ./INDEX  ./TITLE ./README ./README.ace
./README.avas ./ace.doc t:/r/library/acepack/
   adding build stamp to DESCRIPTION
t:/r/bin/Rterm: not found
make[1]: *** [t:/r/library/acepack/zzzz] Error 127
make[1]: Leaving directory `/user/ligges/R/R.INSTALL/acepack'
make: *** [pkg-acepack] Error 2
make: Leaving directory `/cygdrive/t/r/src/gnuwin32'
*** Installation of acepack failed ***

*****************************************

Interesting:
The output says: "t:/r/bin/Rterm: not found". But Rterm.exe is in the
same directory with Rcmd.exe, and the path Uand R_HOME) is set
correctly.

Regards,
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