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

HFUT_qianyang發表於2017-02-23

目錄

問題描述

今天,想用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。所以,你的解決辦法可以是從其他地方將此包下載下來,自行安裝。或者翻牆,輕鬆解決。哎,中國的網路始終不能做到通向世界,蛋疼。
為此,本人為了更好的學術,購買了翻牆軟體。

這裡寫圖片描述

下載,再試試下載相關包,如下截圖說明一切。

這裡寫圖片描述

相關文章