[R] Making R packages (Unix)

Thomas Lumley tlumley at u.washington.edu
Wed Sep 10 16:52:40 CEST 2003


On Tue, 9 Sep 2003, Gattuso, Jean-Pierre wrote:

> Hi:
>
> I have have taken over from a colleague who
> prepared an R package and failed to build it on
> Windows. I am doing this with unix as I am a mac
> user. Below is the output I get when I use the
> build command:

This looks like what happens under Mac OS X, where tar doesn't recognise
the -X flag for eXcluding files [it's used for something else].

You can confirm by checking man tar.  I don't know if this will get fixed
for 1.8.0, but a work-around is to get GNU tar.

	-thomas

> [gattuso:unix/R/CO2.Rcheck] gattuso% R CMD build CO2
> * checking for file 'CO2/DESCRIPTION' ... OK
> * preparing 'CO2':
> * checking whether 'INDEX' is up-to-date ... NO
> * use '--force' to overwrite the existing 'INDEX'
> * removing junk files
> * building 'CO2_1.0.tar.gz'
> tar: Unable to access
> /Users/gattuso/documents/unix/R/CO2.Rcheck/CO2_1.0.tar
> <No such file or directory>
> tar: WARNING! These file names were not selected:
> /Users/gattuso/documents/unix/R/CO2.Rcheck/CO2_1.0.tar
> CO2_1.0.tar: No such file or directory
>
>
> I have read the R-exts.pdf document but did not
> find what I do wrong. In fact, there is little
> information on the use of R CMD build, both in
> the R-exts.pdf document and the man (R CMD build
> --help) pages.
>
> Do I need to make the CO2_1.0.tar file myself?
>
> Your help would be much appreciated!
>
> jp
> --
> 
> Jean-Pierre Gattuso | mailto:gattuso at obs-vlfr.fr
> | http://www.obs-vlfr.fr/~gattuso
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list