R 報錯:package ‘***’ is not available (for R version ****) 的解決方案

 

 

R 安裝sparklyr,ggplot2等包出現以下warninghtml

package ‘****’ is not available (for R version 3.0.2)ubuntu

系統環境 ubuntu14.04fetch

 

上述問題糾結了我好久,嘗試過本身安裝packages.zip包,出現了版本不對的報錯ui

this R is version 3.0.2, package 'ggplot2' requires R >= 3.1

因而考慮到升級系統,猜想多是底層依賴以及R的版本太低,因而運行以下命令在個人電腦裏生效了,你們若是遇到能夠用此方法試下this

sudo add-apt-repository ppa:marutter/rrutterspa

sudo apt-get update.net

sudo apt-get upgradecode

若是出現以下錯誤:htm

Fetched 30.0 MB in 50min 49s (9,832 B/s)                                       
E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/b/boot/r-cran-boot_1.3-17-1trusty0_all.deb  Connection failed

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/s/survival/r-cran-survival_2.40-1-1~ubuntu14.04.1~ppa1_amd64.deb  Connection failed

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/rpart/r-cran-rpart_4.1-10-1trusty0_amd64.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/r-cran-class/r-cran-class_7.3-14-1trusty0_amd64.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/r-cran-nnet/r-cran-nnet_7.3-12-1trusty0_amd64.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/r-cran-spatial/r-cran-spatial_7.3-10-1trusty0_amd64.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/c/codetools/r-cran-codetools_0.2-15-1cran1trusty0_all.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/r-base/r-base_3.3.2-1trusty0_all.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/r-base/r-recommended_3.3.2-1trusty0_all.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/r-base/r-doc-html_3.3.2-1trusty0_all.deb  Size mismatch

E: Failed to fetch http://ppa.launchpad.net/marutter/rrutter/ubuntu/pool/main/r/r-base/r-base-html_3.3.2-1trusty0_all.deb  Size mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

運行以下命令:sudo apt-get upgrade --fix-missingip

 

R語言的報錯比較粗糙,有些時候只是說not available,但並無告訴你到底哪裏不匹配,這裏應該算是個小bug,但Mac-OS以及win目前還沒遇到過

相關文章
相關標籤/搜索