[R] MiKTEX-texi2dvi
Gabor Grothendieck
ggrothendieck at gmail.com
Tue Oct 14 00:07:56 CEST 2008
One thing to try is to download Sweave.bat from
http://batchfiles.googlecode.com
and place it in the same directory as the Rnw file (or anywhere on your
path) and then from Windows console:
Sweave foo.Rnw
If MiKTeX is in a standard location Sweave.bat will find it and it
will locate R itself from the registry.
On Mon, Oct 13, 2008 at 5:42 PM, Felipe Carrillo
<mazatlanmexico at yahoo.com> wrote:
> 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
>
> ______________________________________________
> 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