[R] Problems with PDF/Latex when building a package
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Apr 3 08:57:24 CEST 2010
One thing I noticed is the '2007' in there. Fedora also is stuck at
TexLive 2007 but that is getting old and some CRAN packages do not
work with it (and conversely some do despite errors in vignettes that
are uncoverd in TeXlive 2009).
So this may not apply to Erin, but developers are advised to use
TexLive 2009 (or the similar MiKTeX 2.8 on Windows) and update it
regularly (hyperref updates have broken R documentation builds a few
times over the last 6 months).
On Sat, 3 Apr 2010, Barry Rowlingson wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
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
More information about the R-help
mailing list