【问题标题】:Rtools40: Where are make utilities (bash, make, etc)?Rtools40:make 实用程序(bash、make 等)在哪里?
【发布时间】:2020-12-01 09:32:06
【问题描述】:

您好,我尝试升级我的 R 安装,但无法完成。我从这里安装了 RTools40 https://cran.rstudio.com/bin/windows/Rtools/ 它明确指出: “安装完成后,您需要再执行一个步骤才能编译 R 包:您需要将 Rtools make 实用程序(bash、make 等)的位置放在 PATH 上。” 我不知道这些实用程序的路径。我如何找到这些 Rtools 实用程序?

编辑: 解决了。我必须插入位于 rtools40/usr/bin 中的文件夹的路径。

【问题讨论】:

  • list.files("c:/Rtools40", "find\\.exe", recursive = TRUE, full.names = TRUE)
  • 但一般来说,在安装目录中查找路径时,当您看到.../bin/ 时,表明您可能有其他bin 变体,例如.../usr/bin/,这是在我的机器。

标签: r rtools r-4.0.0


【解决方案1】:

@r2evans(20 年 8 月 11 日 17:00)的回答非常有帮助:

list.files("c:/Rtools40", "find\\.exe", recursive = TRUE, full.names = TRUE)

然后,只需添加:

writeLines('PATH="YOUR PATH"', con = "~/.Renviron"),

问题就解决了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-09-15
    • 2019-01-16
    • 1970-01-01
    • 2021-07-30
    • 2015-07-15
    • 1970-01-01
    • 2019-08-18
    • 1970-01-01
    相关资源
    最近更新 更多