突然无法在R中安装或更新软件包

时间:2016-09-09 07:16:41

标签: r windows

我无法更新和安装R软件包。直到最近我才能这样做,但是当我尝试连接到CRAN镜像时,我突然收到以下错误消息:

*--- Please select a CRAN mirror for use in this session ---
Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGRA~1/R/R-33~1.1/doc/CRAN_mirrors.csv'
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning: 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'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) : 
  no packages were specified
   In addition: Warning message:
   In download.file(url, destfile = f, quiet = TRUE) :
      InternetOpenUrl failed: ''*
  • 我尝试使用基本R和RStudio安装软件包,但都不起作用。
  • 我已经检查了我的防火墙/代理设置,他们没事。
  • 我已经以管理员身份打开了R和RStudio,但它无法正常工作
  • 我检查了整个R文件夹和Program Files中的所有子文件夹都是可写的。
  • 我目前正在使用R i386 3.3.1,但尝试使用相同的结果在R 3.2.5中安装软件包。
  • 我目前正在使用Windows 7。

有人可以提出替代解决方案吗?我不知道下一步该做什么。

更新以包含sessionInfo()输出:

R version 3.3.1 (2016-06-21)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_South Africa.1252  LC_CTYPE=English_South Africa.1252   
[3] LC_MONETARY=English_South Africa.1252 LC_NUMERIC=C                         
[5] LC_TIME=English_South Africa.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_3.3.1

0 个答案:

没有答案
相关问题