[Tikzdevice-bugs] A problem on 'sanitize = FALSE' when using pgfSweave

Yihui Xie xieyihui at gmail.com
Mon Sep 6 06:59:02 CEST 2010


Hi smart tikzDevice team,

I've been writing a book on R graphics using pgfSweave and tikzDevice
for several months, and everything works perfect until now: finally I
reached a case in which I have no control of the string containing '%'
in a plot. I could have used sanitize=TRUE in tikz(), but as I'm using
pgfSweave, I wish I can avoid hard-coding like this:

<<fig=FALSE, tikz=FALSE>>=
tikz('some-plot.tikz', sanitize=TRUE)
{plot something}
dev.off()
\input{some-plot.tikz}
@

So I request that 'sanitize' could take values from a global option
like options(sanitize = TRUE/FALSE), or equivalently add an extra
option in pgfSweave named 'sanitize'.

Thanks so much for the great tools!

Regards,
Yihui
--
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


More information about the Tikzdevice-bugs mailing list