[R] Problem creating reference manuals from latex
Duncan Murdoch
murdoch.duncan at gmail.com
Tue Nov 15 03:59:10 CET 2011
On 11-11-14 9:44 PM, Tyler Rinker wrote:
>
> R Community,
>
> I often am in need of viewing the reference manuals of packages and do not have Internet access. I have used the code:
>
> path<- find.package('tm')
> system(paste(shQuote(file.path(R.home("bin"), "R")),"CMD", "Rd2pdf",shQuote(path)))
>
> someone kindly provided from this help list to generate the manuals from the latex files. This worked well with version R 2.13. After the upgrade to R 2.14 I use this code (see below and get an error message I don't understand). I'm pretty sure "! LaTeX Error: File `inconsolata.sty'" not found. is important but don't get it's significance. There's a post about it here: http://r.789695.n4.nabble.com/inconsolata-font-for-building-vignettes-with-R-devel-td3838176.html but I am a windows user making this a moot point. I know this file is n R font's file that Miktext needs to build the manual.
>
> I'd like to be able generate the reference manuals again without the Internet. While the code above worked in the past I'm open to alternative methods.
You need to install the inconsolata.sty file. It is available on CTAN
(the TeX network, not the R one). You say you don't have Internet
access, so I don't know how you'll do this, but presumably there's a
way: you got MikTex installed somehow.
Duncan Murdoch
>
> Version: R 2.14.0 2011-10-31
> OS: Windows 7
> Latex: MikTex 2.9
>
> Thank you
> Tyler Rinker
>
>
>> path<- find.package('tm')
>> system(paste(shQuote(file.path(R.home("bin"), "R")),"CMD", "Rd2pdf",shQuote(path)))
> Hmm ... looks like a package
> Converting parsed Rd's to LaTeX .......
> Creating pdf output from LaTeX ...
> Warning: running command '"C:\PROGRA~2\MIKTEX~1.9\miktex\bin\texi2dvi.exe" --pdf "Rd2.tex" -I "C:/PROGRA~1/R/R-214~1.0/share/texmf/tex/latex" -I "C:/PROGRA~1/R/R-214~1.0/share/texmf/bibtex/bst"' had status 1
> Error : running 'texi2dvi' on 'Rd2.tex' failed
> LaTeX errors:
> ! LaTeX Error: File `inconsolata.sty' not found.
> Type X to quit or<RETURN> to proceed,
> or enter new name. (Default extension: sty)
> ! Emergency stop.
> <read *>
>
> l.267
>
> ! ==> Fatal error occurred, no output PDF file produced!
> Error in running tools::texi2dvi
> Warning message:
> running command '"C:/PROGRA~1/R/R-214~1.0/bin/i386/R" CMD Rd2pdf "C:/Users/Rinker/R/win-library/2.14/tm"' had status 1
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
More information about the R-help
mailing list