[R] MiKTEX and texi2dvi

Felipe Carrillo mazatlanmexico at yahoo.com
Mon Oct 13 21:24:51 CEST 2008


Liviu: Thanks for the links, I'll check them out. On a different note, have you used MiKTEX at all? I have downloaded it 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.


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


--- On Sun, 10/12/08, Liviu Andronic <landronimirc at gmail.com> wrote:

> From: Liviu Andronic <landronimirc at gmail.com>
> Subject: Re: [R] Sweave-LaTEX question
> To: mazatlanmexico at yahoo.com
> Cc: r-help at stat.math.ethz.ch
> Date: Sunday, October 12, 2008, 11:47 PM
> On Sun, Oct 12, 2008 at 1:39 AM, Felipe Carrillo
> <mazatlanmexico at yahoo.com> wrote:
> > I am working on a publication and I have heard about
> LaTEX but I haven't actually tried to learn about it
> until today. I've found a few
> >
> There are two more packages that might be of interest:
> RReportGenerator [1] and relax [2].
> Liviu
> 
> [1]
> http://alnitak.u-strasbg.fr/~wraff/RReportGenerator/index.php
> [2] http://cran.r-project.org/web/packages/relax/index.html



More information about the R-help mailing list