Re: [R] simplest pgfSweave example results in error

2011-09-30 Thread Yihui Xie
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 t

Re: [R] simplest pgfSweave example results in error

2011-09-30 Thread syrvn
Hi, 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 inclu

Re: [R] simplest pgfSweave example results in error

2011-09-29 Thread Yihui Xie
pgfSweave() tries to compile your tex file to PDF by default; that is where texi2dvi() came from. Are you compiling the same Rnw as you mentioned before? It looks odd because there should not be a makefile unless you turned on externalization (the Rnw file you provided did not use externalization)

Re: [R] simplest pgfSweave example results in error

2011-09-29 Thread syrvn
Hi Yihui, thank you very much for your answer. Just before I read your reply I deleted my basicTex and installed the full MacTex on my system. When I compile my .Rnw file I finally get a compiled PDF file. Nevertheless, R outputs the following error message: --- Not regenerat

Re: [R] simplest pgfSweave example results in error

2011-09-29 Thread Yihui Xie
Hi, You do not need to use a different Sweave.sty, but I think you have to add this to your Rnw file: \usepackage{tikz} Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Sep 29, 2011 at

[R] simplest pgfSweave example results in error

2011-09-29 Thread syrvn
Hello, since 3 days now I try to get pgfSweave running using Eclipse + StatET. I created a super simple .Rnw file which can be viewed here: http://www.text-upload.com/read.php?id=147992&c=6441045 test.Rnw When I use sweave it works perfectly fine but when I use pgfSweave I get an error. The R