Seems to be weird. I can run the example smoothly under Ubuntu with R 2.13.2. Could you also post your .tex file?
Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Oct 13, 2011 at 7:01 PM, Peter Meilstrup <peter.meilst...@gmail.com> wrote: > I'm trying to get pgfSweave up and running. Hopefully I can get it > working from within LyX, but first I'm just trying to get the simplest > possible thing (compiling one of the example files in the pgfSweave > package) to work. I'm using the example that comes in the pgfSweave > package unmodified, but for reference I copied it to: > > http://pastebin.com/tW4RL6fs > > Configuration: > R version 2.13.1 on OS X (intel) 10.5.8 > pgfSweave package version 1.2.1 > tikzDevice version 0.6.1 > MacTeX 2011 installed > tikz/pgf package version 2.10 > > Here is what I tried; I copied the file pgfSweave-example.Rnw into my > working directory, created a "cache" dir and ran: > >> require("pgfSweave") >> pgfSweave("pgfSweave-example.Rnw") > > This did some computation and then complained about a missing bracket: > > ! Missing } inserted. > <inserted text> > } > l.439 \end{figure} > > After I dismissed this, it seemed to fail with various errors. > > make: *** [pgfSweave-example-boxplot.pdf] Error 1 > Error in tools::texi2dvi(paste(fn, "tex", sep = "."), pdf = pdf, ...) : > Running 'texi2dvi' on 'pgfSweave-example.tex' failed. > LaTeX errors: > ! Package tikz Warning: Some images are not up-to-date and need to be > generated > . [1 > > Rerunning pgfSweave led to the same errors. > The process created a .pdf file, but in place of a figure it has the notice: > > "[[ Image Discarded Due To ‘/tikz/external/mode=list and make’ ]] NA " > > Upon inspecting the log file I found this notice: > > ===== mode=`list and make': Use 'make -f pgfSweave-example.makefile' to > generat > e all images. Then, re-run (pdf)latex pgfSweave-example. ===== > > I tried following this instruction, but it also produced an error: > > bayanus-2:writing peter$ make -f pgfSweave-example.makefile > pdflatex -halt-on-error -interaction=batchmode -jobname > "pgfSweave-example-boxplot" > "\def\tikzexternalrealjob{pgfSweave-example}\input{pgfSweave-example}" > This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) > restricted \write18 enabled. > entering extended mode > make: *** [pgfSweave-example-boxplot.pdf] Error 1 > > I put the full R transcript at http://pastebin.com/aZECxKyP in case > that contains additional useful information. > I also put the contents of pgfSweave-example.log at > http://pastebin.com/LzZW1z3R . > Also pgfSweave-example-boxplot.log at http://pastebin.com/AF3TCCEK . > > What's going wrong? > Cheers, > Peter > > ______________________________________________ > 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. > ______________________________________________ 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.