Skip to content
Prev 8135 / 15076 Next

building a package on a Mac: pdflatex

On 5 Jul 2011, at 14:48, David Winsemius wrote:

            
As a matter of completeness, PATH=$PATH:/user/texbin did not alter my path 'globally', and immediately broke in a new terminal tab.  

I solved the issue globally with

sudo sh -c 'echo "/usr/texbin">>/etc/paths.d/texbin' [the reader should be warned I use bash by default on my terminal]

which does work if I use R in a terminal and I call system('pdflatex --version'). This solution also allowed a perfectly clean R CMD check.

On the other hand, from the GUI [R.app GUI 1.40 (5751) x86_64-apple-darwin9.8.0],
/bin/sh: pdflatex: command not found

bw

F





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