yihui/knitr — Issue #96: possible bug with xcolor and tikz-device
Author: beamgau
Created: 2012-01-22 00:18:16+00:00
State: open

hi everybody,

thanks for developing knitr, it seems to be very useful!

However, i might have found a bug in knitr: when i compile the following file

[code]
\documentclass{article}
\begin{document}

<>=
plot(1)
@

\end{document}
[\code]

using knit("test.rnw") and compilePdf("test.tex"), i get the following error:

[code]
LaTeX errors:
C:\Users\***\Documents\test\unnamed-chunk-1.tikz:3: Package xcolor Error: Und
efined color model `'.
[\code].

and the compiling fails. However, when i open the produced .tex-file and change the second line from \usepackage{graphicx, color} to \usepackage{graphicx, xcolor}, it works well. Don't know whether this is a bug or i missed setting some options or so. I would be glad, if you could look into this, and, thanks again for developing knitr.

Best,
Felix