No RTools compatible with R version 3.5.0 was found

前端 未结 3 736
生来不讨喜
生来不讨喜 2020-11-29 07:23

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

3条回答
  •  被撕碎了的回忆
    2020-11-29 08:28

    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

    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

提交回复
热议问题