作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我安装了pgfSweave
LaTeX 文档中的颜色语法包,但是当涉及到 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'
最佳答案
在 MikTex 存储库上,使用的版本显然是 2.00。最新2.10版本可下载here .安装说明可以在包含在 ...\pgf_2.10.tds\doc\generic\pgf
下的 zip 文件中的手册中找到。 .
如果根据安装说明移动整个文件夹。归结为将相关 gpf 文件夹从 zip 文件中的目录结构复制到 miktex 安装中的目录结构。最好是尝试符合 TDS 的安装,在其中替换 texmf/
在带有 miktex 安装文件夹的安装说明中。
不要忘记通过 miktex 设置应用程序刷新 FNDB(文件名数据库)。
或者,您可以卸载 pgf 包并将解压缩的目录树放在 Tex 可以找到它的地方。同样,不要忘记刷新 FNDB。请注意,已安装的 pgf 包将在 MikTex 目录树的不同位置具有文件夹。因此,不要只是将您找到的所有内容粘贴到您在目录系统中找到的一个文件夹中。
编辑 :
要了解 tex 发行版中加载的 pgf 版本,请尝试以下小文档:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\pgfversion
\end{document}
关于r - 如何在 MikTeX 中获取 pgfSweave 包(例如当前的 PGF)的依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5646379/
我是一名优秀的程序员,十分优秀!