Re: [Rd] stumped on re-building package vignette

From: Paul Johnson <pauljohn32_at_gmail.com>
Date: Tue, 12 Jun 2012 11:10:15 -0500

On Wed, Jun 6, 2012 at 8:21 AM, Michael Friendly <friendly_at_yorku.ca> wrote:
> [Env: Win Xp / StatET 2.0 / R 2.15.0]
>
> In my heplots package I extended the HE-examples.Rnw vignette under
> inst/doc. The package passes R CMD check
> on my machine:
>
> * using log directory 'C:/eclipse-3.7/heplots.Rcheck'
> * using R version 2.15.0 (2012-03-30)
> * using platform: i386-pc-mingw32 (32-bit)
> ...
> * checking sizes of PDF files under 'inst/doc' ... OK
> * checking installed files from 'inst/doc' ... OK
> * checking examples ... OK
> * checking for unstated dependencies in vignettes ... OK
> * checking package vignettes in 'inst/doc' ... OK
> * checking running R code from vignettes ...
> 'HE-examples.Rnw' ... OK
> 'repeated.Rnw' ... OK
> ...

2 suggestions.

First, On your own workstation, run the cmd check like so

R CMD check --as-cran package.tar.gz

That will give you results more like CRAN or Rforge.

Second, how did your pdf get into the folder "fig"? It makes me suspect you are using some forbidden Sweave settings.

Oh, Third, here's a suggestion. Build your own vignette, copy from vignettes to inst/doc, and then in the DESCRIPTION file include the option to ask the R system not to rebuild your vignette.

BuildVignettes: false

I think you will see this discussed/debated in R-devel and the situation is somewhat fluid.

pj

>
> However, on R-Forge and on CRAN, the following error/warning is generated:
>
> Mon Jun  4 20:18:22 2012: Checking package heplots (SVN revision 136) ...
> * using log directory
> ‘/mnt/building/build_2012-06-04-20-02/RF_PKG_CHECK/PKGS/heplots.Rcheck’
> * using R version 2.15.0 Patched (2012-06-03 r59505)
> * using platform: x86_64-unknown-linux-gnu (64-bit)
>  ...
> * checking for unstated dependencies in vignettes ... OK
> * checking package vignettes in ‘inst/doc’ ... OK
> * checking running R code from vignettes ...
>   ‘HE-examples.Rnw’ ... [4s/4s] OK
>   ‘repeated.Rnw’ ... [4s/4s] OK
>  [9s/9s] OK
> * checking re-building of vignette PDFs ... NOTE
> Error in re-building vignettes:
>  ...
> Loading required package: car
> Loading required package: MASS
> Loading required package: nnet
> Error: processing vignette 'HE-examples.Rnw' failed with diagnostics:
> cannot open file 'fig/plot-plastic1.pdf'
> Execution halted
>
> * checking PDF version of manual ... OK
>
> I am unable to determine why the file fig/plot-plastic1.pdf cannot be
> opened. It is in my inst/doc/fig directory & is regenerated
> by the .Rnw file. What could cause this?
>
> Second, I have tried manually running tools::compactPDF("HE-examples.pdf) on
> the .pdf file under inst/doc in the package,
> but no change is made to the .pdf file. I can't see any way to correct this.
>
> --
> Michael Friendly     Email: friendly AT yorku DOT ca
> Professor, Psychology Dept.
> York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
> 4700 Keele Street    Web:   http://www.datavis.ca
> Toronto, ONT  M3J 1P3 CANADA
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 12 Jun 2012 - 16:13:35 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 Tue 24 Jul 2012 - 00:20:33 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