简体   繁体   English

在 R CMD 检查中禁用构建 PDF

[英]Disable building PDF in an R CMD check

I'm running tests for an R package on a build server that doesn't have LaTeX installed, so I'm trying to disable manual creation.我在没有安装 LaTeX 的构建服务器上运行 R package 测试,所以我试图禁用手动创建。

My build command looks like:我的构建命令如下所示:

R CMD build --no-manual --no-build-vignettes src/R/pkgname
R CMD check --no-manual --no-vignettes --no-build-vignettes  pkgname_1.0.tar.gz

And yet I see this error:然而我看到了这个错误:

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
* checking PDF version of manual without hyperrefs or index ... ERROR
Re-running with no redirection of stdout/stderr.
Hmm ... looks like a package
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
  pdflatex is not available
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
  pdflatex is not available
Error in running tools::texi2pdf()
You may want to clean up by 'rm -Rf /tmp/Rtmp17Rvhk/Rd2pdf25c661003cc9'
* DONE

How can I ask the build process to not check the manual besides --no-manual and --no-build-vignettes ?除了--no-manual--no-build-vignettes之外,我如何要求构建过程不检查手册?

I do that all time both directly and on Travis.我一直这样做,无论是直接还是在 Travis 上。 You may have the options slightly wrong (they changed once or twice).您的选项可能略有错误(它们更改了一次或两次)。 Which R are you running?您正在运行哪个 R?

With R 4.0.0, try使用 R 4.0.0,尝试

R CMD build --no-manual --no-build-vignettes 

and

R CMD build --no-manual --no-vignattes  tarBallFromPreviousStep

See eg this travis.yml file (esp lines 26 and 27) and eg this most recent run from it .参见例如这个travis.yml文件(尤其是第 26 和 27 行),例如这个最近运行的文件。

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

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