R - 让Rtools在R 3.0.2版上安装

时间:2013-11-16 20:52:51

标签: r devtools

所以我为R安装了devtools,但是当我用:

调用库时
library(devtools)

我得到以下输出:

WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 3.1 from http://cran.r-project.org/bin/windows/Rtools/ and then run find_rtools().

所以我执行了以下代码:

install.packages("Rtools", repos = "http://cran.r-project.org/bin/windows/Rtools/")

我得到以下输出:

Installing package into ‘C:~/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://cran.r-project.org/bin/windows/Rtools/bin/windows/contrib/3.0
Warning message:
package ‘Rtools’ is not available (for R version 3.0.2)

我很感激有任何帮助将Rtools放到我的机器上,所以我可以调用devtools库。谢谢!

1 个答案:

答案 0 :(得分:17)

Rtools不是一个包。见这里:https://cran.r-project.org/bin/windows/Rtools/