Pregunta

Simple case.

  • R-2.13.2
  • pgfSweave 1.2.1
  • pgf 2.10

I define a very simple file to test with.

\documentclass{article}
\title{Testing pgfSweave figures with tikz device}
\begin{document}\maketitle
<<testfigure, fig=T, tikz=T>>=
plot(density(rnorm(1000)))
@
\end{document}

but when I run pgfSweave("test.Rnw", pdf=T, compile.tex=T) I get this error.

! Undefined control sequence.
l.379 {\tikzexternaldisable

And what comes out in the pdf is gibberish. What is wrong?

¿Fue útil?

Solución

You have to \usepackage{tikz}

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top