[R-SIG-Mac] R-SIG-Mac Digest, Vol 75, Issue 18

Ji-Ping Wang jzwang at northwestern.edu
Wed May 20 12:42:01 CEST 2009


Hi, Berend and all,

   Thanks for pointing out this. That's very helpful. Indeed it was the path
of pdflatex issue. After installing MacTex, the problem is solved.

jiping


> From: <r-sig-mac-request at stat.math.ethz.ch>
> Reply-To: <r-sig-mac at stat.math.ethz.ch>
> Date: Tue, 19 May 2009 12:00:12 +0200
> To: <r-sig-mac at stat.math.ethz.ch>
> Subject: R-SIG-Mac Digest, Vol 75, Issue 18
> 
> Send R-SIG-Mac mailing list submissions to
> r-sig-mac at stat.math.ethz.ch
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> or, via email, send a message with subject or body 'help' to
> r-sig-mac-request at stat.math.ethz.ch
> 
> You can reach the person managing the list at
> r-sig-mac-owner at stat.math.ethz.ch
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of R-SIG-Mac digest..."
> 
> 
> Today's Topics:
> 
>    1. Re:  Problem with R CMD check, pdflatex (Berend Hasselman)
>    2. Re:  Problem with R CMD check, pdflatex (Prof Brian Ripley)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 18 May 2009 17:07:27 +0200
> From: Berend Hasselman <bhh at xs4all.nl>
> Subject: Re: [R-SIG-Mac] Problem with R CMD check, pdflatex
> To: R-SIG-Mac Mailing List <r-sig-mac at stat.math.ethz.ch>
> Cc: Michael H?hle <Michael.Hoehle at stat.uni-muenchen.de>
> Message-ID: <ABBAE1F6-7F2E-45F8-AE5E-BC07349354C2 at xs4all.nl>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> 
> On 17-05-2009, at 14:52, Michael H?hle wrote:
> 
>> however, my pdflatex is located in e.g.
>> 
>> $ which pdflatex
>> /usr/local/teTeX/bin/i386-apple-darwin-current/pdflatex
> 
> 
> That would be quite an old TeX installation?
> The teTeX distribution is no longer maintained.
> 
> You should consider switching to MacTeX ( http://www.tug.org/mactex/ )
> It has everything you need. It's excellent.
> 
> Berend
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 18 May 2009 17:53:06 +0100 (BST)
> From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
> Subject: Re: [R-SIG-Mac] Problem with R CMD check, pdflatex
> To: Simon Urbanek <simon.urbanek at r-project.org>
> Cc: r-sig-mac at stat.math.ethz.ch
> Message-ID: <alpine.LFD.2.00.0905181740170.1409 at gannet.stats.ox.ac.uk>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
> 
> On Mon, 18 May 2009, Simon Urbanek wrote:
> 
>> 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.
> 
> True, but here we talking about R_PDFLATEXCMD, which is only used by
> Rd2dvi, which is AFAIK only called via R CMD and so from a shell. I
> would have thought that 'R_PDFLATEXCMD=pdflatex' (so looking on the
> path) was a better default for a binary distribution.
> 
> You can always set R_PDFLATEXCMD (or PDFLATEX) if the distributed
> binary is not right for you.
> 
> R CMD check does do a check for a workable pdflatex, but it seems it
> looks at the environment variable PDFLATEX not R_PDFLATEXCMD: I'll
> update it.
> 
> 
>> 
>> 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
>>> R-SIG-Mac at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>> 
>>> 
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> -- 
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 
> ------------------------------
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 
> End of R-SIG-Mac Digest, Vol 75, Issue 18
> *****************************************
>



More information about the R-SIG-Mac mailing list