Skip to content
Back to formatted view

Raw Message

Message-ID: <C71496B7-9179-4FCD-A468-2CF6C778412A@imperial.ac.uk>
Date: 2011-07-05T09:44:25Z
From: Federico Calboli
Subject: building a package on a Mac: pdflatex

Hi All,

I am building a package on my MBP (latest R, latest OSX, TexLive 2010), and I am incurring in some annoying problems with R CMD check:

* 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("Rd2.tex", pdf = (out_ext == "pdf"), quiet = FALSE,  : 
 pdflatex is not available
Error in running tools::texi2dvi

My comment is, pdflatex *is* availiable:

$ :/usr/local/texlive/2010/bin/universal-darwin$ ls -l pdflatex 
lrwxr-xr-x  1 root  wheel  6 21 Oct  2010 pdflatex -> pdftex

and

$ :/usr/local/texlive/2010/bin/x86_64-darwin$ ls -l pdflatex 
lrwxr-xr-x  1 root  wheel  6 21 Oct  2010 pdflatex -> pdftex

How do I get R CMD check to play nice with my latex installation? I could just ssh the lot to a Linux machine, but that's too much of a defeat...

Best,

Federico




--
Federico C. F. Calboli
Department of Epidemiology and Biostatistics
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com