Dear all,

I'm  trying to use sweave, but running the demo example, I got problem.
First, I'm realluy a beginner with LaTeX and sweave, so sorry if my question seems weird.


First I've installed mactex distribution :
http://www.tug.org/mactex/2011/

I've set up the "SWEAVE_STYLEPATH_DEFAULT" environnement variable to TRUE into my .Renviron file
(So as the compilation could easy retreive the Sweave.sty file I guess ? )


But I still can't use texi2dvi : 

> testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "utils")
> 
> ## enforce par(ask=FALSE)
> options(device.ask.default=FALSE)
> 
> ## create a LaTeX file
> Sweave(testfile)
Writing to file Sweave-test-1.tex
Processing code chunks with options ...
 1 : print term verbatim
 2 : term hide
 3 : echo print term verbatim
 4 : term verbatim
 5 : echo term verbatim
 6 : echo term verbatim pdf
 7 : echo term verbatim pdf

You can now run (pdf)latex on 'Sweave-test-1.tex'

> texi2dvi("Sweave-test-1.tex")
Error in texi2dvi("Sweave-test-1.tex") : 
  Running 'texi2dvi' on 'Sweave-test-1.tex' failed.
> 


using R CMD texi2dvi Sweave-test-1.tex,  I got: 
/Users/meurice/Desktop/Sweave-test-1.tex:101: LaTeX Error: File `Sweave-test-1-006' not found.

So I change 
\includegraphics{Sweave-test-1-006}
\includegraphics{Sweave-test-1-007}
to
\includegraphics{Sweave-test-1-006.pdf}
\includegraphics{Sweave-test-1-007.pdf}

Now, I get the follong error : 
/Users/meurice/Desktop/Sweave-test-1.tex:101: LaTeX Error: Cannot determine size of graphic in Sweave-test-1-006.pdf (no BoundingBox)




Many thanks for help and sorry again if my problem sounds too much like beginner problems

--
R version 2.13.0 (2011-04-13)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] C

attached base packages:
[1] tools     stats     graphics  grDevices utils     datasets  methods   base   


--
G.Meurice
	[[alternative HTML version deleted]]

