[R] package Utils Sweave Example Error

Felipe Carrillo mazatlanmexico at yahoo.com
Thu Oct 16 16:18:16 CEST 2008


 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?

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



More information about the R-help mailing list