2017-07-17 111 views
0

我得到这个错误Rstudio没有连接到CRAN

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方法和使用Internet Explorer代理服务器设置为HTTP方法。

+1

使用不同的镜。 – Roland

+0

转到RGUI并测试不同的存储库。 – Rockbar

回答

-1

似乎索引服务器崩溃。您应该使用RGUI而不是RStudio来安装软件包,并首先设置选项。

+0

你好谢谢你,你是什么意思由索引服务器崩溃?这是暂时的事情吗? – stochastiq

+0

>抱歉,我不知道这台服务器需要多长时间,也许SAS会攻击这个,^ - ^,这是个玩笑。索引服务器用于根据您的帖子快速查找软件包。 – g205

+0

这个答案是非常不完整的。请更新以解释您的第二句话的含义。另外,不要假设每个用户都可以随时访问Rgui。 – Thomas