简体   繁体   English

R CMD 检查:跳过“检查小插图输出的重建”

[英]R CMD Check: Skip 'checking re-building of vignette outputs'

I build my R package using --no-build-vignettes because the vignette takes very long to run.我使用--no-build-vignettes构建我的 R 包,因为小插图需要很长时间才能运行。 Hence, I also want to avoid that "R CMD Check " checks for the vignette re-build.因此,我也想避免“R CMD Check”检查小插图重建。
I tried to use --no-check-vignettes .我尝试使用--no-check-vignettes However this gets ignored (not sure if it exists at all).然而,这被忽略了(不确定它是否存在)。

Another reason to ignore my vignette is the fact that I get in trouble on Travis CI because this step exceeds 10 mins (which causes the build to abort).另一个忽略我的小插图的原因是我在 Travis CI 上遇到了麻烦,因为这一步超过了 10 分钟(这会导致构建中止)。

Is there a way to avoid the building and checking of vignettes of an R package?有没有办法避免构建和检查 R 包的小插图? (Besides setting all vignette chunks to eval = FALSE ) (除了将所有小插图块设置为eval = FALSE

One needs to set r_check_args: "--no-build-vignettes --ignore-vignettes" in .travis.yml to skip rebuilding of vignettes.人们需要一套r_check_args: "--no-build-vignettes --ignore-vignettes".travis.yml跳过护身符的重建。

In RStudio --no-build-vignettes needs to go into the "build options" and and --ignore-vignettes into the "check options" in the configuration GUI in the "Build" pane.在 RStudio 中--no-build-vignettes需要进入“构建选项”和--ignore-vignettes进入“构建”窗格中配置 GUI 中的“检查选项”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM