我收到此错误
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不断尝试连接到其他网址,只有在连接到https://cran.rstudio.com/bin/windows/contrib/3.4/shinythemes_1.1.1.zip时才会成功
为什么会这样?
我设置了我的GLOBAL(CDN)Rstudio,安全HTTP方法并使用HTTP方法的Internet Explorer代理设置。
答案 0 :(得分:-1)
似乎索引服务器崩溃了。您应该使用RGUI而不是RStudio来安装软件包,首先设置选项。