我得到了这个错误
Installing package into ‘C:/Users/XXXXX/Downloads/RPackages’
(as ‘lib’ is unspecified)
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/shinythemes_1.1.1.zip'
Content type 'application/zip' length 999652 bytes (976 KB)
downloaded 976 KB也就是说,Rstudio会不断尝试连接到其他URL,并且只有在连接到https://cran.rstudio.com/bin/windows/contrib/3.4/shinythemes_1.1.1.zip时才会成功
为什么会这样呢?
我设置了全局(CDN) Rstudio、安全HTTP方法和使用Internet Explorer代理设置的HTTP方法。
发布于 2017-07-17 13:18:42
索引服务器似乎崩溃了。您应该使用RGUI而不是RStudio来安装软件包,请先设置选项。
https://stackoverflow.com/questions/45136178
复制相似问题