[R] Problems with PDF/Latex when building a package

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Sat Apr 3 01:13:32 CEST 2010


On Fri, Apr 2, 2010 at 11:43 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> I'm building a packages on an Ubuntu Karmic Koala 9.10 system and am
> getting the following errors:
>
>
> * checking PDF version of manual ... WARNING
> LaTeX errors when creating PDF version.
> This typically indicates Rd problems.
> LaTeX errors found:
> ! Font T1/ptm/m/n/10=ptmr8t at 10.0pt not loadable: Metric (TFM) file not found
...
> When I run on another system, it runs fine.  Has anyone run into this
> lately, please?
>
> I got the pdflatex via sudo apt-get install pdflatex.

 I can't see a pdflatex package on my Karmic Koala:

# apt-get install pdflatex
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pdflatex

 so unless you're getting it from another repository... I suspect you
did something else, probably got it from the texlive-latex-base
package...

# dpkg-query  -S `which pdflatex`
texlive-latex-base: /usr/bin/pdflatex

 Hmmm. Anyway, there's a bunch of font-related packages in there and
maybe you missed one or two. Here's the packages that match 'texlive'
and those that match 'tex' and 'font' on my system:

# dpkg-query  -W | grep texlive
texlive	2007.dfsg.2-4ubuntu1
texlive-base	2007.dfsg.2-4ubuntu1
texlive-base-bin	2007.dfsg.2-7ubuntu1
texlive-common	2007.dfsg.2-4ubuntu1
texlive-doc-base	2007.dfsg.2-2
texlive-extra-utils	2007.dfsg.2-7ubuntu1
texlive-font-utils	2007.dfsg.2-7ubuntu1
texlive-fonts-recommended	2007.dfsg.2-4ubuntu1
texlive-generic-recommended	2007.dfsg.2-4ubuntu1
texlive-latex-base	2007.dfsg.2-4ubuntu1
texlive-latex-extra	2007.dfsg.17-2ubuntu1
texlive-latex-recommended	2007.dfsg.2-4ubuntu1
texlive-math-extra	2007.dfsg.17-2ubuntu1
texlive-pictures	2007.dfsg.2-4ubuntu1
texlive-pstricks	2007.dfsg.17-2ubuntu1
texlive-science	2007.dfsg.17-2ubuntu1

# dpkg-query  -W | grep tex| grep font
latex-xft-fonts	0.1-8
texlive-font-utils	2007.dfsg.2-7ubuntu1
texlive-fonts-recommended	2007.dfsg.2-4ubuntu1

I've not seen any problems with PDF creation on the packages I've
built, but maybe I'd have the same trouble. Anyway, above should help
you see if your latex installation is comparable to mine or to any
other install!

Barry



More information about the R-help mailing list