[R-SIG-Mac] checking for pdflatex
John Fox
jfox at mcmaster.ca
Tue Mar 17 17:33:52 CET 2015
Dear JJ,
> -----Original Message-----
> From: JJ Allaire [mailto:jj at rstudio.com]
> Sent: March-17-15 12:20 PM
> To: John Fox
> Cc: Simon Urbanek; Berend Hasselman; r-sig-mac at r-project.org
> Subject: Re: [R-SIG-Mac] checking for pdflatex
>
> >
> > Actually, I already looked at the code in rmarkdown and tried exactly
> > this. On my Mac under R.app, where the default path is
> >
> >> Sys.getenv("PATH")
> > [1] "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
> >
> > I get
> >
> >> rmarkdown:::find_program("pdflatex")
> > [1] ""
> >
>
> Sorry if this was part of the thread already, but where is your pdflatex? In my
> configuration based on MacTeX it's in /usr/texbin. In RStudio we get this on
> the PATH by reading the OSX PATH configuration (i.e. /etc/paths and
> /etc/paths.d/*).
No need to apologize.
Yes, for me pdflatex is in /usr/texbin, and this seems to be reasonably standard.
As you may have seen, Brian Ripley says that it's OK for me to add /usr/texbin to the PATH if it's not already there, and that's what I've now done in the Rcmdr package. This solves the problem for the Rcmdr running under R.app but not the more general problem of rmarkdown failing under R.app outside of its use in the Rcmdr.
Best,
John
---
This email has been checked for viruses by Avast antivirus software.
More information about the R-SIG-Mac
mailing list