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

______________________________________________
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.

Reply via email to