【问题标题】:RStudio cannot find Rtools to build packageRStudio 找不到 Rtools 来构建包
【发布时间】:2018-11-29 00:11:49
【问题描述】:

我在 Windows 10 机器上安装了 R 3.5.0 和 Rtools 3.5。运行 devtools::find_rtools() 产生 TRUE 但是当我尝试检查并构建我正在处理的包时,我得到了错误:

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/

基于这个link,我运行了以下命令,但得到了同样的错误:

Sys.setenv(PATH = paste("C:/Rtools/bin", Sys.getenv("PATH"), sep=";"))
Sys.setenv(BINPREF = "C:/Rtools/mingw_$(WIN)/bin/")

如何让 Rtools 被识别以构建包?

【问题讨论】:

    标签: r rstudio rtools


    【解决方案1】:

    原来我还需要将 c:\Rtools\mingw_64\bin; 添加到我的 PATH 中。

    【讨论】:

      猜你喜欢
      • 2019-01-20
      • 2016-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-11
      • 2020-11-11
      • 1970-01-01
      相关资源
      最近更新 更多