[Rd] Rd.sty not found
murdoch.duncan at gmail.com
Mon Mar 25 18:05:28 CET 2013
On 25/03/2013 12:27 PM, Lori Shepherd wrote:
> I'm trying to build and check a new package. But keep getting the
> * checking PDF version of manual ... WARNING
> LaTeX errors when creating PDF version.
> This typically indicates Rd problems.
> When I go into the package.Rcheck directory,
> package-manual.pdf is created.
> however if I do a pdflatex on package.tex I get the following:
> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
> restricted \write18 enabled.
> entering extended mode
> LaTeX2e <2011/06/27>
> Babel <v3.8m> and hyphenation patterns for english, dumylang,
> nohyphenation, ge
> rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek,
> ibycus, arabi
> c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian,
> czech, danis
> h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi,
> h, french, friulan, galician, german, ngerman, swissgerman, monogreek,
> greek, h
> ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada,
> malayalam, ma
> rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish,
> kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal,
> polish, portuguese, romanian, romansh, russian, sanskrit, serbian,
> serbianc, s
> lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian,
> welsh, loaded.
> Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
> ! LaTeX Error: File `Rd.sty' not found.
> Type X to quit or <RETURN> to proceed,
> or enter new name. (Default extension: sty)
> Enter file name:
> ! Emergency stop.
> <read *>
> l.4 \usepackage
> ! ==> Fatal error occurred, no output PDF file produced!
> How do I fix this? I have never had this problem when building or
> checking packages before?
Rd.sty is a style file provided by R to handle some of the macros used
in help pages. You can have R tell pdflatex where to find it by using
R CMD texify --pdf package.tex
Alternatively, if your package is in directory "package", you can do
R CMD Rd2pdf package
and it will produce the .tex and texify it all in one step. I believe
both will leave the log file for you to examine if there's an error, but
you can force that using the "--no-clean" command line option.
> Also of note: I notice that the pacakge-Ex.R and package-Ex.Rout run
> without error but the package-Ex.pdf is empty and there is no
> associated package-Ex.tex to look at.
More information about the R-devel