找不到与R版本3.5.0兼容的RTools [英] No RTools compatible with R version 3.5.0 was found

查看:684
本文介绍了找不到与R版本3.5.0兼容的RTools的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在为R版本3.5.0安装data.table时遇到问题,并被建议检查RTools是否已正确安装.

I had problems installing data.table for R version 3.5.0, and was advised to check that RTools was properly installed.

在安装RTools 3.5(这似乎是最新的)之后,我输入了

After installing RTools 3.5 (this seems to be the latest) I typed

find_rtools(T)

我收到以下消息:

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/.

因此,一方面,我确实已经安装了3.5,但似乎认为其中存在一个更新/不同的版本.

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.

有什么想法吗?

推荐答案

问题是Windows系统PATH中没有Rtools 3.5,因此find_rtools找不到它.另一种可能性是PATH

The problem was Rtools 3.5 was not in your Windows system PATH thus find_rtools couldn't find it. Another possibility was that an incompatible version of Rtools was in the PATH

安装Rtools的最佳做法:

Best practice for installing Rtools:

  • 下载最新版本
  • 在默认的推荐位置(C驱动器的根目录)安装RTools:C:/Rtools/

  • Download the latest version
  • Install RTools at default recommended location (at the root of your C drive): C:/Rtools/

< 重要>,选中允许Rtools修改系统PATH的框

<Important> Check the box that allows Rtools to modify system PATH

安装后,我们可以通过在R

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;

另请参见指南

编辑:对于没有管理权限的人,请参见以下链接:

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆