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 <[EMAIL PROTECTED]> wrote: > From: Liviu Andronic <[EMAIL PROTECTED]> > Subject: Re: [R] Sweave-LaTEX question > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Date: Sunday, October 12, 2008, 11:47 PM > On Sun, Oct 12, 2008 at 1:39 AM, Felipe Carrillo > <[EMAIL PROTECTED]> 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 ______________________________________________ R-help@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.