[R] Building packages in XP

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Dec 18 00:49:51 CET 2003



Niels Waller wrote:
> 
> R users,
> 
> I recently upgraded (?) to Windows XP from 2000.  I am trying to build an R
> package.  I have done this many times on my old system and I am not sure why
> it is not working in XP.
> 
> To build the package I call a bat file that specifies all the necessary
> paths -- but the "build" file (which appears to be a perl script) is looking
> for a "src" subdirectory in the src directory? [which, of course, does not
> exist].
> 
> I am using rw1081 with the latest ActiveState Perl and tools (from Ripley)
> installed
> 
> Any help would be greatly appreciated
> 
> Thanks,
> 
> Niels Waller
> niels.waller at vanderbilt.edu
> 
> *******  my bat file **********
> 
> set TMPDIR=h:\TEMP
> set path=d:\Latex\texmf\miktex\bin;h:\bin;h:\R\rw1081\bin;g:\Perl\bin;
> R\rw1081\bin;

- What kind of path is the latter (without any drive letter)?
- In some circumstances you need "." in your path (maybe not for
compiling packages - I'm too lazy to read the docs right now).


> rcmd build --binary --use-zip taxon
> 
> **** end of my bat file *****
> 
> ***my error messages ******
> 
> H:\R\rw1081\src\gnuwin32>rcmd build --binary --use-zip taxon
> * checking for file 'taxon/DESCRIPTION' ... OK
> 
> make: *** H:/R/rw1081/src/src/gnuwin32: No such file or directory.  Stop.
> *** Installation of taxon failed ***
> 
> * building 'taxon_1.5.zip'
>         zip warning: name not matched: taxon
> 
> zip error: Nothing to do! (try: zip -r9X
> H:/R/rw1081/src/gnuwin32/taxon_1.5.zip
> . -i taxon)
> 
> H:\R\rw1081\src\gnuwin32>
> 
>         [[alternative HTML version deleted]]


It should be the same as on any other Windows machine, hence the problem
is NOT your version of Windows. Some comments:
- I think it's strange to build packages within the R source tree. Try
to avoid that at first!
- Is that version of R self-compiled or the binary from CRAN?
- Do you have modified any files within the R sources? 
- Do you use a Makefile in taxon?

Uwe Ligges




More information about the R-help mailing list