Diagnosing R Package build Error: pdfLatex Not Available

jackStinger picture jackStinger · Jan 15, 2013 · Viewed 12k times · Source

I am trying to build a package in R. I made the skeleton, and ran the command R CMD check package1. I got an an error described here. I followed the solution steps, and the results are:

  1. package devtools not available for R 2.15.1

  2. punched in R CMD Rd2pdf package1.

Hmm.. Looks like a package
Converting Rd files to LaTeX
Creating pdf output from LaTeX
Error in texi2dvi(file=file, pdf=true, clean=clean, quiet=quiet, : pdflatex not available
Error in running tools::texi2pdf
  1. I looked up this amongst other things, installed the complete tex live & MiKTeX. Same error message showed up.
  2. I navigated to the directory where pdflatex is located and tried running the command from there. Didn't help.

Is there something I'm missing here, or is there a workaround? Or maybe, Is there a way to suppress pdf generation during package creation?

UPDATE: This error was not thrown when I tried it in LINUX (CentOS).

Answer

Oliver Shaw picture Oliver Shaw · Feb 10, 2015

you certainly can suppress the PDF generation.

R CMD check package --no-manual

From here