2014-11-20 64 views
1

我无法在Windows7上安装使用RStudio的devtools软件包,错误低于[*]。 提前赞赏任何帮助建议。Windows 7上的R版本3.1.2 install.packages(“devtools”)失败

> install.packages("devtools") 
Warning in install.packages : 
    unable to resolve 'cran.rstudio.com' 
Warning in install.packages : 
    unable to resolve 'cran.rstudio.com' 
Warning in install.packages : 
    unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1 
Installing package into ‘C:/Users/Lucy/Documents/R/win-library/3.1’ 
(as ‘lib’ is unspecified) 
Warning in install.packages : 
    unable to resolve 'cran.rstudio.com' 
Warning in install.packages : 
    unable to resolve 'cran.rstudio.com' 
Warning in install.packages : 
    unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1 
Warning in install.packages : 
    package ‘devtools’ is not available (for R version 3.1.2) 
+1

您应该尝试另一个存储库。 – 2014-11-20 23:30:35

+0

感谢您的回复!如何尝试另一个存储库? – freshbird 2014-11-21 01:12:59

+0

所以这不是一个真正的R问题,而只是一个RStudio问题。 – 2014-11-21 01:38:01

回答

1

它看起来像RStudio镜像可能已停机修理。

enter image description here

全球选择题的选项关闭工具菜单为您提供了多种面板选择。我点击“更改...”按钮,列出了镜像名称列表。一些镜子比其他镜子更新颖和可靠。几乎所有的镜像都有一些与其操作相关的停机时间,并且当您的默认选择无响应时很容易再试一次。

enter image description here

你可以用它来选择不同的镜子。

+0

非常感谢您的建议!是的,你是对的。 RStudio镜像关闭了,而不是关闭了。我试图再次安装devtools软件包,现在它成功了! – freshbird 2014-11-29 15:12:49