Skip to content

[R-pkg-devel] R CMD check not finding my vignettes

7 messages · David Hugh-Jones, Uwe Ligges, Berry Boessenkool

#
Before building my package, I manually place both pdf and html versions of
my vignettes into inst/doc. I then build the package with `devtools::check`.

Listing of the resulting tarball:

-rw-r--r--  0 david  staff    1692  6 Apr 15:10
huxtable/inst/doc/design-principles.R

-rw-r--r--  0 david  staff    6697  6 Apr 15:10
huxtable/inst/doc/design-principles.Rmd

-rw-r--r--  0 david  staff  899765  6 Apr 15:10
huxtable/inst/doc/design-principles.html

-rw-r--r--  0 david  staff  213776  6 Apr 15:10
huxtable/inst/doc/design-principles.pdf

-rw-r--r--  0 david  staff    3009  6 Apr 15:10 huxtable/inst/doc/huxreg.R

-rw-r--r--  0 david  staff    5521  6 Apr 15:10 huxtable/inst/doc/huxreg.Rmd

-rw-r--r--  0 david  staff  940955  6 Apr 15:10
huxtable/inst/doc/huxreg.html

-rw-r--r--  0 david  staff  237771  6 Apr 15:10 huxtable/inst/doc/huxreg.pdf

-rw-r--r--  0 david  staff   10473  6 Apr 15:11 huxtable/inst/doc/huxtable.R

-rw-r--r--  0 david  staff   20552  6 Apr 15:11
huxtable/inst/doc/huxtable.Rmd

-rw-r--r--  0 david  staff  925373  6 Apr 15:11
huxtable/inst/doc/huxtable.html

-rw-r--r--  0 david  staff  284978  6 Apr 15:11
huxtable/inst/doc/huxtable.pdf

However, R CMD check then complains:

* checking package vignettes in ?inst/doc? ... WARNING
Package vignettes without corresponding PDF/HTML:
   ?design-principles.Rmd?
   ?huxreg.Rmd?
   ?huxtable.Rmd?

What gives?

Cheers,
David
#
Okay, so this got tumbleweeded... so should I file a bug?

D

On Thu, 6 Apr 2017 at 15:37, David Hugh-Jones <davidhughjones at gmail.com>
wrote:
#
I do not know devtools, but the vignette sources should be placed in 
./vignettes and then R CMD build will put the files into the relevant 
places automatically.

Best,
Uwe Ligges
On 07.04.2017 07:55, David Hugh-Jones wrote:
#
Hi Uwe,

Indeed yes, but my built tarball has got the files in inst/doc as shown. If
I then run 'R CMD check' on that tarball, I get the error quoted. Is there
something happening that I don't understand?

Incidentally, the tarball also has files in the vignettes directory: (a)
the original .Rmd files and (b) HTML files. My original directory has all
of Rmd, HTML and PDF files in the vignettes directory, but for some reason
the PDFs don't get included when the tarball is built.

Cheers,
David

David

On 7 April 2017 at 07:15, Uwe Ligges <ligges at statistik.tu-dortmund.de>
wrote:

  
  
#
Can you send the tarball please, I can take a look,
Uwe
On 07.04.2017 12:09, David Hugh-Jones wrote:
3 days later
#
The "missing" files or their directory are not by accident listed in Rbuildignore, right?
#
Hi Berry,

Good call, and I would have been very embarrassed if so, but no. Actually,
if they had been, I guess they would not have appeared in the tarball.

Cheers,
David

On 10 April 2017 at 14:57, Berry Boessenkool <berryboessenkool at hotmail.com>
wrote: