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:
 Okay, so this got tumbleweeded... so should I file a bug?

D

On Thu, 6 Apr 2017 at 15:37, David Hugh-Jones <davidhughjo...@gmail.com>
wrote:


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


______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to