[R] MiKTEX-texi2dvi

Felipe Carrillo mazatlanmexico at yahoo.com
Mon Oct 13 23:42:26 CEST 2008


Sorry, I forgot to include a reproducible example on my last e-mail but here it is: Since the file is large to be included here:
The path to the foo.Rnw examples is:
www.stat.umn.edu/~charlie/Sweave/foo.Rnw 
and is suppossed to produce a pdf like this one:
http://www.stat.umn.edu/~charlie/Sweave/foo.pdf

I have downloaded MiKTEX but I don't know how to make it work. Sweave and Stangle seem to work fine but when I use "texi2dvi" it crashes.
library(tools)
  Sweave("C:/Program Files/R/R-2.7.2/bin/foo.Rnw")
Writing to file foo.tex
Processing code chunks ...
1 : echo term verbatim (label=two)
2 : echo term verbatim (label=reg)
3 : echo term verbatim (label=fig1plot)
4 : term verbatim eps pdf (label=fig1)
5 : term verbatim eps pdf (label=fig2)
6 : term hide (label=foo)
7 : term hide (label=foo2)
8 : echo term verbatim (label=blurfle)
9 : term tex (label=tab1)

You can now run LaTeX on 'foo.tex'
>    Stangle("C:/Program Files/R/R-2.7.2/bin/foo.Rnw")
Writing to file foo.R 
>    texi2dvi("foo.tex",pdf=TRUE)

C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Missing 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Extra 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Missing 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Extra 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Missing 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Extra 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Missing 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Missing 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Extra 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Missing 
C:/Program Files/R/R-2.7.2/bin/foo.tex:11: Extra 
Error in texi2dvi("foo.tex", pdf = TRUE) : 
  running 'texi2dvi' on 'foo.tex' failed

Any ideas why texi2dvi is crashing? "foo.tex" exist on same directory as "foo.Rnw" but it says that is missing.Thanks





Felipe D. Carrillo  
Supervisory Fishery Biologist  
Department of the Interior  
US Fish & Wildlife Service  
California, USA



More information about the R-help mailing list