Building package source breaks down on vignette

Deadly 提交于 2019-12-10 18:22:48

问题


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?

来源:https://stackoverflow.com/questions/41351102/building-package-source-breaks-down-on-vignette

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!