首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Rstudio未连接到CRAN

Rstudio未连接到CRAN
EN

Stack Overflow用户
提问于 2017-07-17 12:51:26
回答 1查看 778关注 0票数 0

我得到了这个错误

代码语言:javascript
复制
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方法。

EN

回答 1

Stack Overflow用户

发布于 2017-07-17 13:18:42

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

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45136178

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档