Michael,

CRAN R comes configured with MacTeX, see also
https://stat.ethz.ch/pipermail/r-sig-mac/2009-April/006129.html

One of the problems is that PATH settings on OS X differ between LS- started apps, shells etc., so it is in general problematic to get the path right in all circumstances, so currently the CRAN binary assumes the most common distribution.

Cheers,
Simon


On May 17, 2009, at 2:52 PM, Michael Höhle wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear R-Sig-Mac,

Regarding Ji-Ping's problem I experienced a similar issue after having
upgraded to 2.9.0 on my Mac. The checking of the PDF manual causes
warnings and the following check of PDF version without index causes an
error.

$ tail -n 4 00check.log
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
* checking PDF version of manual without index ... ERROR

The interesting part is that when uploading the <package>.tar.gz file to Uwe Ligges win-builder website, the package compiles without warnings or
errors on Windows.

Furthermore, the document compiles without any errors when manually
compiling the resulting <package>-manual.pdf in the ..Rcheck folder with
pdflatex.

However, when trying to generate the manual with:

$ R CMD Rd2dvi --pdf .
Hmm ... looks like a package
Converting Rd files to LaTeX ...
 <snip>
Creating pdf output from LaTeX ...
/Library/Frameworks/R.framework/Resources/bin/Rd2dvi: line 228:
/usr/texbin/pdflatex: No such file or directory
Error in running pdflatex command ('/usr/texbin/pdflatex')

It appears as if the new 2.9.0 searches for pdflatex in
/usr/texbin/pdflatex

however, my pdflatex is located in e.g.

$ which pdflatex
/usr/local/teTeX/bin/i386-apple-darwin-current/pdflatex

When setting up a symlink to /usr/texbin R CMD check worked fine. So the problem appears to have to do with R looking for pdflatex in the "wrong"
place?

Best regards,

Michael



P.S. For the record:

$ which pdflatex
/usr/local/teTeX/bin/i386-apple-darwin-current/pdflatex

$ latex --version
pdfeTeX 3.141592-1.30.4-2.2 (Web2C 7.5.5)

sessionInfo()
R version 2.9.0 (2009-04-17)
i386-apple-darwin8.11.1

locale:
C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKEAimJenxFqlYkSERAi6qAKCmXnAX6aZKe4wTvsJFe4bNPmlMOgCgsVLr
CJXWu0m4RSy9AGLHJX8EEbU=
=ShA0
-----END PGP SIGNATURE-----

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac



_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to