首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >R包install失败:cannot open URL

R包install失败:cannot open URL

作者头像
用户1359560
发布于 2019-07-22 10:48:05
发布于 2019-07-22 10:48:05
5.2K0
举报
文章被收录于专栏:生信小驿站生信小驿站

R语言包安装问题:

这是一类包的安装问题:

R包install失败:cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'

Warning: unable to access index for repository https://mirrors.ustc.edu.cn/CRAN/src/contrib: cannot open URL 'https://mirrors.ustc.edu.cn/CRAN/src/contrib/PACKAGES'

解决办法:

将https换成http,虽然我们浏览器不管是http、https都能打开.

代码语言:javascript
复制
options(repos='http://cran.rstudio.com/')

参考https://stackoverflow.com/questions/25599943/unable-to-install-packages-in-latest-version-of-rstudio-and-r-version-3-1-1

注:重启R后又会变回原来的https的...

然后要改个R studio设置: Tools -> Global Options -> Packages and unchecking the "Use Internet Explorer library/proxy for HTTP" option.

将Use Internet Explorer library/proxy for HTTP选项反勾选

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019.07.20 ,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • R语言包安装问题:
  • 这是一类包的安装问题:
  • 解决办法:
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档