Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diagnosing R package build warning: "LaTeX errors when creating PDF version"

When building a package, I received the following warning:

* checking PDF version of manual ... WARNING LaTeX errors when creating PDF version. This typically indicates Rd problems. 

I have no idea how to even begin diagnosing this. Is there a tool that tells me what .Rd file the problem is in?

I get no warnings about any of my Rd files in the checking documentation step....

like image 883
Ari B. Friedman Avatar asked May 30 '12 16:05

Ari B. Friedman


1 Answers

Try R CMD Rd2pdf mypackage to create the manual, and possibly also set the --no-clean option to keep the temporary files. This should allow you to debug the LaTeX code triggering the error.

like image 91
Dirk Eddelbuettel Avatar answered Oct 05 '22 22:10

Dirk Eddelbuettel