问题描述
我在为 R 版本 3.5.0 安装 data.table 时遇到问题,建议检查 RTools 是否已正确安装.
安装 RTools 3.5(这似乎是最新的)后,我输入了
find_rtools(T)
我收到以下消息:
警告:构建 R 包需要 Rtools,但没有版本找到了与 R 3.5.0 兼容的 Rtools.(仅找到以下不兼容的 Rtools 版本:3.4、3.5)请从以下位置下载并安装适当版本的 Rtoolshttp://cran.r-project.org/bin/windows/Rtools/.
所以一方面看起来我确实安装了 3.5,但似乎认为有一个更新/不同的版本.
有什么想法吗?
问题是 Rtools 3.5
不在你的 Windows 系统 PATH
因此 find_rtools代码> 找不到.另一种可能性是
Rtools
的不兼容版本在 PATH
安装Rtools
的最佳实践:
下载
安装后,我们可以通过在
中运行这个命令来仔细检查R
R>Sys.getenv('PATH')[1] "C:\Program Files\R\R-3.5.0\bin\x64;c:\Rtools\bin;c:\Rtools\mingw_64\bin;
另请参阅此指南
编辑:对于那些没有管理权限的人,请查看以下链接:
I had problems installing data.table for R version 3.5.0, and was advised to check that RTools was properly installed.
After installing RTools 3.5 (this seems to be the latest) I typed
find_rtools(T)
I got the following message:
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 3.5.0 was found. (Only the following incompatible version(s) of Rtools were found:3.4,3.5) Please download and install the appropriate version of Rtools from http://cran.r-project.org/bin/windows/Rtools/.
So on the one hand it looks like I do have 3.5 installed, but it seems to think there is a newer/different version.
Any thoughts?
解决方案The problem was
Rtools 3.5
was not in your Windows systemPATH
thusfind_rtools
couldn't find it. Another possibility was that an incompatible version ofRtools
was in thePATH
Best practice for installing
Rtools
:Download the latest version
Install
RTools
at default recommended location (at the root of yourC
drive):C:/Rtools/
<Important> Check the box that allows
Rtools
to modify system PATH
After the installation, we can double check by running this command inside
R
R> Sys.getenv('PATH') [1] "C:\Program Files\R\R-3.5.0\bin\x64;c:\Rtools\bin;c:\Rtools\mingw_64\bin;
See also this guide
Edit: for those who don't have Administration rights, see these links:
- Rtools with R portable
- Building R packages on Windows without administrator access
- Setting up RStudio Portable Default R version
这篇关于未找到与 R 版本 3.5.0 兼容的 RTools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!