Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
506 views
in Technique[技术] by (71.8m points)

data.table - No RTools compatible with R version 3.5.0 was found

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

Best practice for installing Rtools:

  • Download the latest version

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

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

enter image description here enter image description here

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:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...