An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111114/c0448856/attachment.pl>
Problem creating reference manuals from latex
6 messages · Tyler Rinker, Gabor Grothendieck, Duncan Murdoch
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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111114/fe632102/attachment.pl>
On Mon, Nov 14, 2011 at 9:44 PM, Tyler Rinker <tyler_rinker at hotmail.com> 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:
Check out: http://tolstoy.newcastle.edu.au/R/e16/help/11/11/0345.html http://tolstoy.newcastle.edu.au/R/e16/help/11/11/0362.html
Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com
On 11-11-14 10:25 PM, Tyler Rinker wrote:
Duncan, Thank you for your reply. I was not clear about the Internet access. I do have access, just at times I don't, hence the need to produce the manuals from latex rather than simply using the Internet. Please pardon my lack of knowledge around your response. You said I'd have to install the inconsolata.sty from CTAN. How? Is this installed in an R directory or a Tex directory? Do I use R to install it or latex or save the file and drop into a particular folder (directory)?
It is a TeX package. You need to use the MikTeX package installer to install it. I usually set up MikTeX to do this automatically when it needs a new package, but that requires an available Internet connection; you'll need to do something manually. Start in the Start Menu item for MikTeX 2.9, and find the "package manager" item. Run it, and choose to install the "inconsolata" package. Duncan Murdoch
I've used rseek and a simple google search which reveals a great deal about inconsolata, unfortunately I am not grasping what I need to do. Tyler
Date: Mon, 14 Nov 2011 21:59:10 -0500 From: murdoch.duncan at gmail.com To: tyler_rinker at hotmail.com CC: r-help at r-project.org Subject: Re: [R] Problem creating reference manuals from latex 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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111115/68d7af18/attachment.pl>