Yes, it is a little bit amazing to me too, so let's cc to the package maintainer to see if he can do anything.
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 Fri, Oct 14, 2011 at 12:06 AM, Peter Meilstrup <peter.meilst...@gmail.com> wrote: > Thanks, that lets me move to the next step in figuring out what's > wrong with my document :) Funny enough that's not the first problem > I've had with Sweave and non-ascii characters. > > Peter > > On Thu, Oct 13, 2011 at 7:30 PM, Yihui Xie <x...@yihui.name> wrote: >> OK, that is really helpful for diagnosis. In line 436 of your tex >> file, there is an NA, but it should really be this: >> >> }% this brace ends the effect of ‘include external’ >> >> So the reason for LaTeX failure was this missing bracket }. And the >> reason for R to output NA here is most likely to be that in the LaTeX >> comment here, there are curly quotes, which are not ASCII characters. >> To solve the problem, you can either delete these non-ASCII >> characters, or tell Sweave that your encoding is not latin1, but UTF8. >> The latter way may not be directly possible, and this is why I brought >> up the issue to pgfSweave developers: >> https://github.com/cameronbracken/pgfSweave/issues/34 >> >> 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 8:34 PM, Peter Meilstrup >> <peter.meilst...@gmail.com> wrote: >>> Sure, here's the generated .tex file: >>> http://pastebin.com/b9fTsr0h >>> >>> Peter >>> >>> On Thu, Oct 13, 2011 at 6:14 PM, Yihui Xie <x...@yihui.name> wrote: >>>> 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.