[R] Hmisc & pdflatex
murdoch.duncan at gmail.com
Mon Apr 22 16:41:41 CEST 2013
On 22/04/2013 10:34 AM, Santosh wrote:
> Dear Rxperts,
> Apologize for posting it to a wrong thread..Hence, the re-post...
> I am trying to use pdflatex from Hmisc, I get the error message. "pdflatex
> is not available"... The version of Hmisc is the latest one (got the
> warning that it was compiled under R version 2.15.3) .
> The version of R on my machine is
> > version
> platform i386-w64-mingw32
> arch i386
> os mingw32
> system i386, mingw32
> major 2
> minor 15.2
> year 2012
> month 10
> day 26
> svn rev 61015
> language R
> version.string R version 2.15.2 (2012-10-26)
> nickname Trick or Treat
> Is it not available anymore? I created a latex file using "tables" package
> and am unable to create the pdf file using pdflatex ... I am also not able
> to use Sweave with the above version of R as it is not available.
In this context, "not available" means not listed in your system PATH.
Use Sys.getenv("PATH") to get your current PATH; it will be a list of
directories. If none of those directories contain pdflatex.exe, then
pdflatex is "not available".
> I also tried texi2dvi (from tools); and it says "latex is not available".
> But, I was earlier able to use "latex" with tabular to generate a "tex"
> file. I am confused with such conflicting messages.
> Also.. when I tried to use latex again,
> latex(summ2,title=outfile,file="a1.tex") # summ2 is a "tabular" output
> using "tables" package
> 'latex' is not recognized as an internal or external command,
> operable program or batch file.
> Error in system(cmd, intern = TRUE, wait = TRUE) : 'yap' not found
> In addition: Warning messages:
> 1: running command 'C:\Windows\system32\cmd.exe /c cd
> "C:\Users\santosh\AppData\Local\Temp\RtmpsZ3tP9" & latex
> "C:\Users\santosh\AppData\Local\Temp\RtmpsZ3tP9\file13207cb8d2c"' had
> status 1
> 2: In shell(cmd, wait = TRUE, intern = output) :
> 'cd "C:\Users\santosh\AppData\Local\Temp\RtmpsZ3tP9" & latex
> "C:\Users\santosh\AppData\Local\Temp\RtmpsZ3tP9\file13207cb8d2c"' execution
> failed with error code 1
> Any suggestions welcome!
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> 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