R语言中package ‘xxxx’ is not available (for R version 3.2.5)解决

时间:2022-05-18 13:17:32

目录

问题描述

今天,想用ggplot2画个图,想下载tidyr和dplyr包进行数据转换。结果,哎,报错了。报错内容如下:

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/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
InternetOpenUrl failed: ''
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 :
package ‘plyr’ is not available (for R version 3.2.5)
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.2:
cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/PACKAGES'
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.2:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.2/PACKAGES'

报错解决

针对此报错,基本原因是此包被移除或者你的网根本打不开下载这个包的url。所以,你的解决办法可以是从其他地方将此包下载下来,自行安装。或者*,轻松解决。哎,中国的网络始终不能做到通向世界,蛋疼。
为此,本人为了更好的学术,购买了*软件。

R语言中package ‘xxxx’ is not available (for R version 3.2.5)解决

下载,再试试下载相关包,如下截图说明一切。

R语言中package ‘xxxx’ is not available (for R version 3.2.5)解决