我在 LaTeX 文档中安装了pgfSweave
颜色语法包,但在涉及 LaTeX 依赖项时我搁浅了。我已经pgf
通过 MikTeX 安装了该软件包,Package Manager (Admin)
并且相信它是最新的(我查看了 MiKTeX 安装文件夹中的软件包文件夹,但我没有看到任何版本号)。我错过了什么?
> library(pgfSweave)
Loading required package: stashR
Loading required package: filehash
filehash: Simple key-value database (2.1-1 2010-10-04)
A Set of Tools for Administering SHared Repositories (0.3-3 2009-03-26)
Loading required package: highlight
Loading required package: tools
Loading required package: codetools
Loading required package: parser
Loading required package: Rcpp
Loading required package: optparse
Loading required package: getopt
Loading required package: formatR
tikzDevice: A Device for R Graphics Output in PGF/TikZ Format (v0.5.3)
Checking for a LaTeX compiler...
A working LaTeX compiler was found by checking:
The PATH using the command pdflatex
Global option tikzLatex set to:
C:\PROGRA~2\MIKTEX~1.9\miktex\bin\pdflatex.exe
MiKTeX-pdfTeX 2.9.4052 (1.40.11) (MiKTeX 2.9)
Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh
Error : .onLoad failed in loadNamespace() for 'pgfSweave', details:
call: requirePGFVersion("2.10")
error: PGF >= 2.10 is required to use pgfSweave
In addition: Warning message:
running command 'C:\PROGRA~2\MIKTEX~1.9\miktex\bin\pdflatex.exe -interaction=batchmode -output-directory C:\Users\romunov\AppData\Local\Temp\Rtmply4jAb test-for-pgf.tex' had status 1
Error: package/namespace load failed for 'pgfSweave'