无法在最新版本的RStudio和R Version.3.1.1中安装软件包

 longfeiPHP 发布于 2022-12-24 08:36

我无法通过RStudio and R Version.3.1.1.Kindly帮助的最新版本安装软件包.我得到了如下所述的错误:

Example:
Warning in install.packages :
  InternetOpenUrl failed: ''
Warning in install.packages :
  InternetOpenUrl failed: ''
Warning in install.packages :
  unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1
Installing package into ‘C:/Users/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
  InternetOpenUrl failed: ''
Warning in install.packages :
  InternetOpenUrl failed: ''
Warning in install.packages :
  unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1
Warning in install.packages :
  package ‘reshape’ is not available (for R version 3.1.1)

cer.. 135

不是100%肯定你有同样的问题,但我发现我的工作阻止提供的每个镜像站点选项的困难方式,我得到这样的错误:

Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in download.file(url, destfile = f, quiet = TRUE) : 
  unsupported URL scheme
Warning: unable to access index for repository https://rweb.crmda.ku.edu/cran/src/contrib
Warning message:
package ‘ggplot2’ is not available (for R version 3.2.2)

解决方法(我正在使用CentOS)...

install.packages('package_name', dependencies=TRUE, repos='http://cran.rstudio.com/')

我希望这能节省数小时的挫折感.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有