[R] simplest pgfSweave example results in error
xie at yihui.name
Fri Sep 30 18:28:16 CEST 2011
The error message was:
! LaTeX Error: File `test-003.tikz' not found.
So I'm wondering how your StatET tried to compile the tex file,
especially what was its working directory.
Anyway, I recommend you to turn off the compilation to PDF in
pgfSweave() so that it only generates the tex file, and then you
compile the tex file manually.
pgfSweave(..., graphics.only = TRUE) # this will stop it from calling
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Fri, Sep 30, 2011 at 3:21 AM, syrvn <mentor_ at gmx.net> wrote:
> yes, I had a look at pgfSweave package and realised that it uses texi2dvi to
> compile the pdf file.
> I tried so much last night again that I am not entirely sure whether it is
> the same Rnw file or not.
> I just deleted everything and created a new R-project including a tiny
> example. I also
> included sessionInfo(). pgfSweave failed with the same error message:
>> pgfSweave(file = "/Users/XXX/Documents/Eclipse/Sweave_Test/test.Rnw")
> Writing to file test.tex
> Processing code chunks with options ...
> 1 : echo highlight term verbatim
> 2 : echo highlight term verbatim
> 3 : echo highlight term verbatim tikz sanitize
> You can now run (pdf)latex on 'test.tex'
> Not regenerating makefile for externalization, if your figures have changed,
> remove /Users/XXX/Documents/Eclipse/Sweave_Test/test.makefile and recompile.
> Error in tools::texi2dvi(paste(fn, "tex", sep = "."), pdf = pdf, ...) :
> Running 'texi2dvi' on '/Users/XXX/Documents/Eclipse/Sweave_Test/test.tex'
> In addition: Warning message:
> 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible
> Also pgfSweave did not create any pdf file. I think the reason why I had a
> pdf file the last time was that at some point I was running the normal
> sweave which runs without any errors.
> I then compiled the test.tex file by hand using pdflatex. The pdf was
> created without any errors.
> I uploaded all files produced by pgfSweave as well as pdflatex here:
> Hope that helps to track down the cause of the failure...
More information about the R-help