From the Writing R Extensions Manual, I read that
As from R 2.14.0 the preferred location for the Sweave sources is the subdirectory vignettes of the source packages, but for compatibility with earlier versions of R, vignette sources will be looked for in inst/doc if vignettes does not exist.
However, when I create a vignettes
subdirectory of the package source, when I run devtools::check()
or R CMD check
I get a warning for Package vignette(s) without corresponding PDF
. If I put the vignette (.Rnw and .pdf) in inst/doc
the check completes without complaints. I tried looking in my library at installed packaged and did not see any directories named vignettes
. Should I still use the deprecated location?
R CMD build
operation. – Polysepalous