RStudio 找不到 Rtools 来构建包 [英] RStudio cannot find Rtools to build package
本文介绍了RStudio 找不到 Rtools 来构建包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Windows 10 机器上安装了 R 3.5.0 和 Rtools 3.5.运行 devtools::find_rtools()
产生 TRUE
但是当我尝试检查和构建我正在处理的包时,我收到错误:
I have R 3.5.0 and Rtools 3.5 installed on a Windows 10 machine. Running devtools::find_rtools()
yields TRUE
but when I try to check and build a package I'm working on, I get the error:
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/
基于此链接我运行了以下命令,但得到同样的错误:
Based on this link I ran the following commands but get the same error:
Sys.setenv(PATH = paste("C:/Rtools/bin", Sys.getenv("PATH"), sep=";"))
Sys.setenv(BINPREF = "C:/Rtools/mingw_$(WIN)/bin/")
如何让 Rtools 被识别来构建包?
How can I get Rtools to be recognized to build a package?
推荐答案
原来我需要将 c:\Rtools\mingw_64\bin;
添加到我的 PATH 中.
Turns out I needed to add c:\Rtools\mingw_64\bin;
to my PATH as well.
这篇关于RStudio 找不到 Rtools 来构建包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文