I have a package, lovingly documented with a html vignette using Rmarkdown and knitr. The package builds and works fine (on Windows). The vignette separately runs and renders with no problems. I can build a binary package with no problem.
But when I try to build a source package, I consistently run into this error:
Warning: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/Rscript" --vanilla --default-packages= -e "tools::buildVignettes(dir = '.', tangle = TRUE)"' had status 1
Error: Command failed (1)
I have run the command tools::buildVignettes(dir = '.', tangle = TRUE)
separately in the console. Works fine.
Following advice in other threads, I have updated evaluate
, knitr
, rmarkdown
, etc.
Any ideas how to debug this?
I have built packages with vignettes before, albeit generating pdf vignettes rather than html.
This question dovetails with a more general confusion about how vignettes are really being built using the knitr
/rmarkdown
workflow (in Rstudio). Having read much documentation (and stackoverflow threads), my understanding was that an rmd
file in the vignettes
directory would generate the html in the inst/doc
directory. That doesn't seem to happen - in an internal build [Ctrl-Shift-B], I can only get that vignette to work if I manually copy those files to inst/doc
. Where exactly is the build process told to generate and copy those vignettes?