Re: [Rd] Vignette pdfs missing from zip file after Rcmd build --binary call

From: Simon Urbanek <simon.urbanek_at_r-project.org>
Date: Thu, 07 Jul 2011 12:14:40 -0400

On Jul 7, 2011, at 3:39 AM, Eli Holmes wrote:

> Hi,
>
> I have been building R packages for awhile on Windows, and I recently
> upgraded R and all required package creation tools to 2.13.0. I
> understand that there have been changes in that the R CMD build
> command no longer alters the source directory, cf comments in
> http://tolstoy.newcastle.edu.au/R/e13/help/11/04/10379.html
> For example, if I issue the command Rcmd build FOO, then directory FOO
> is not altered in contrast to earlier R versions where vignette pdfs
> would be added to the source directory FOO.
>
> I have no problem creating the FOO.tar.gz file, and it has the
> vignette pdfs in the inst/doc as usual. The problem is the .zip file
> that I create for Windows users. In earlier versions of R, this .zip
> file had the newly created vignette pdfs but now it does not. Here is
> what I see:
>
> source FOO:
> inst/doc
> foo.Rnw
>
> FOO.tar.gz (after Rcmd build FOO)
> inst/doc
> foo.pdf
> foo.Rnw
>
> FOO.zip (after Rcmd build --binary FOO or R CMD install --build FOO)
> inst/doc
> foo.Rnw
>

It sort of defeats the purpose to create a tar ball and then not use it ;)

> Yes, I can manually move the pdf files from the tar.gz directory to
> the zip directory, but there are many and I am liable to make
> mistakes.
>
> I suppose I could unzip the tar.gz file and then make a temporary
> source file FOOtmp and run Rcmd build --binary FOOtmp, but I am hoping
> there is an easier way.
>
> Things I have tried unsuccessful
> I tried using the tar.gz file as the source

That is indeed the usual way.

> Rcmd build --binary FOO.tar.gz (got error)
> R CMD install --build FOO.tar.gz (same error)

Can you be more specific as of what errors you get? It may point to issues in the your package. Also the command is R CMD INSTALL not install.

Cheers,
Simon

>
> I tried using some of the options for R CMD install:
> --force-multiarch and --merge-multiarch. No change.
>
> Any ideas?
>
> Thanks!
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 07 Jul 2011 - 16:16:58 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Jul 2011 - 22:20:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive