【问题标题】:r - Rd2pdf error about TeX binaryr - 关于 TeX 二进制文件的 Rd2pdf 错误
【发布时间】:2014-12-29 11:23:37
【问题描述】:

我使用 devtools 和 roxygen2 在 RStudio 中创建了一个 R 包。我打开了项目文件,现在我想获取我的功能的所有文档并将其放在一个 pdf 参考手册中。我跑了

system("R CMD Rd2pdf .")

这给了我以下错误:

# Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
#  Running 'texi2dvi' on 'Rd2.tex' failed.

# Output:
# You don't have a working TeX binary (tex) installed anywhere in
# your PATH, and texi2dvi cannot proceed without one.  If you want to use
# this script, you'll need to install TeX (if you don't have it) or change
# your PATH or TEX environment variable (if you do).  See the --help
# output for more details.

# For information about obtaining TeX, please see http://www.tug.org.  If
# you happen to be using Debian, you can get it with this command:
#  apt-get install tetex-bin
# Error in running tools::texi2pdf()

我使用的是 OS X 10.10,并且安装了 MacTeX(它位于我的 Applications 文件夹中)。我是 R 和 LaTeX 的初学者,所以当错误消息说我没有安装 可工作的 TeX 二进制文件 时,我不确定它是什么意思。我应该如何进行?

【问题讨论】:

    标签: r package latex reference-manual


    【解决方案1】:

    在四处挖掘之后,我发现我遇到的错误与 优胜美地升级。

    解决方法是按照here 的建议从终端启动 RStudio。

    当我这样做时,我能够很好地制作参考手册。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多