On 10/16/2008 10:18 AM, Felipe Carrillo wrote:> Hi:
> I'm still trying to figure out how use Sweave. Trying the example below
I get the error message when texi2dvi is executed. Any ideas about how to make
texi2dvi work?
Try running it as texi2dvi("Sweave-test-1.tex", pdf=TRUE,
quiet=FALSE),
and post the list of error messages.
You should also show us the results of sessionInfo() and
Sys.getenv("PATH"), and tell us which version of LaTeX you have
installed.
Duncan Murdoch
>
> library(tools)
>> testfile <- system.file("Sweave",
"Sweave-test-1.Rnw", package = "utils")
>> options(device.ask.default=FALSE)
>> Sweave(testfile)
> Writing to file Sweave-test-1.tex
> Processing code chunks ...
> 1 : print term verbatim
> 2 : term hide
> 3 : echo print term verbatim
> 4 : term verbatim
> 5 : echo term verbatim
> 6 : echo term verbatim eps pdf
> 7 : echo term verbatim eps pdf
>
> You can now run LaTeX on 'Sweave-test-1.tex'
>> texi2dvi("Sweave-test-1.tex", pdf=TRUE) # Error here
>
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Missing
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11:
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Extra
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Missing
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Extra
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Missing
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Extra
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Missing
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Missing
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Extra
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Missing
> C:/Documents and Settings/fcarrillo/Desktop/Sweave-test-1.tex:11: Extra
> Error in texi2dvi("Sweave-test-1.tex", pdf = TRUE) :
> running 'texi2dvi' on 'Sweave-test-1.tex' failed
>
>
> 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.