I’m creating an R package and running into this build failure in Travis-CI.
When I run the check manually via
$ R CMD check package.tar.gz, there are no ERRORS:
... * checking tests ... Running ‘testthat.R’ OK * checking PDF version of manual ... OK * DONE Status: 6 WARNINGs, 3 NOTEs See
However, here is the error causing the Travis-CI build to fail:
* checking tests ... Running ‘testthat.R’ OK * 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/RtmpR5975i/Rd2pdf413d6976434f' * DONE Status: 1 ERROR, 5 WARNINGs, 2 NOTEs See ‘/home/travis/build/package/package.Rcheck/00check.log’ for details. The command "R CMD check *tar.gz" exited with 1.
I’m not sure why the test would fail in Travis-CI but not manually. I’m also not sure how to best solve this issue.