Вопрос

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?

Это было полезно?

Решение

You have to \usepackage{tikz}

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top