[R] Compiling R Package on Windows

Ko-Kang Kevin Wang kwan022 at stat.auckland.ac.nz
Thu Jan 24 22:22:51 CET 2002


I just installed the R-patched 1.4.0 and for some reason I now have
trouble compiling R packages - I could compile it a few weeks ago with R
1.4.0 released in December.  This only happens if I put the --binary
option in.

For example:
  Rcmd build --binary cw
returns the error:
make: Entering directory `/cygdrive/c/PROGRA~1/R/RW1040/src/gnuwin32'
make DLLNM= \
  -C C:/MyRWork/cw PKG=cw RHOME=c:/PROGRA~1/R/RW1040
RLIB=c:/TEMP/Rbuild.503609
\
  -f c:/PROGRA~1/R/RW1040/src/gnuwin32/MakePkg
make[1]: Entering directory `/cygdrive/c/MyRWork/cw'
if [ ! -f ./TITLE -a -f ./DESCRIPTION ] ; then \
  perl c:/PROGRA~1/R/RW1040/share/perl/maketitle.pl ./DESCRIPTION >
TITLE; \
fi
make[1]: /bin/sh.exe: Command not found
make[1]: *** [TITLE] Error 127
make[1]: Leaving directory `/cygdrive/c/MyRWork/cw'
make: *** [pkg-cw] Error 2
make: Leaving directory `/cygdrive/c/PROGRA~1/R/RW1040/src/gnuwin32'
*** Installation of cw failed ***

installing R.css in c:/TEMP/Rbuild.503609

* building `cw_0.1.zip'
        zip warning: name not matched: cw

zip error: Nothing to do! (try: zip -r9X C:/MyRWork/cw_0.1.zip . -i cw)


But if I do something like:
  Rcmd build cw
then I can successfully built a .tar.gz version of it...

Thanks in advance for the help :-)

Ko-Kang Wang

------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Postgraduate PGDipSci Student (Summer Research Assistant)
Department of Statistics
University of Auckland
New Zealand

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