[問題] 套件安裝異常(dplyr,tidytext)

作者: hakiooi (霸氣初心者)   2018-04-07 17:06:00
[問題類型]:程式諮詢
[軟體熟悉度]:
使用者(已經有用R 做過不少作品)
[問題敘述]:
在install兩個套件(tidy、dplyr)時,會一直出現錯誤,其中dplyr以前有安裝過,但現在不知道為什麼一直無法成功安裝,進而連library也會出現錯誤
[程式範例]:
> install.packages("dplyr")
Warning in install.packages :
URL 'http://dmlc.ml/drat/bin/macosx/mavericks/contrib/3.3/PACKAGES.gz': status was '404 Not Found'
Warning in install.packages :
URL 'http://dmlc.ml/drat/bin/macosx/mavericks/contrib/3.3/PACKAGES': status was '404 Not Found'
Warning in install.packages :
unable to access index for repository https://dmlc.github.io/drat/bin/macosx/mavericks/contrib/3.3:
cannot download all files
嘗試 URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/dplyr_0.7.4.tgz'
Content type 'application/x-gzip' length 6006175 bytes (5.7 MB)
==================================================
downloaded 5.7 MB
The downloaded binary packages are in
/var/folders/w4/2_4f02095k70nxwym2lw3x5m0000gn/T//RtmpedXZSf/downloaded_packages
> library(dplyr)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘tibble’ 1.2 is already loaded, but >= 1.3.1 is required
錯誤: package or namespace load failed for ‘dplyr’
> install.packages("tidytext")
Warning in install.packages :
URL 'http://dmlc.ml/drat/bin/macosx/mavericks/contrib/3.3/PACKAGES.gz': status was '404 Not Found'
Warning in install.packages :
URL 'http://dmlc.ml/drat/bin/macosx/mavericks/contrib/3.3/PACKAGES': status was '404 Not Found'
Warning in install.packages :
unable to access index for repository https://dmlc.github.io/drat/bin/macosx/mavericks/contrib/3.3:
cannot download all files
There is a binary version available but the source version is later:
binary source needs_compilation
tidytext 0.1.3 0.1.8 FALSE
> library(tidytext)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘tibble’ 1.2 is already loaded, but >= 1.3.1 is required
錯誤: package or namespace load failed for ‘tidytext’
[環境敘述]:
setting value
version R version 3.3.2 (2016-10-31)
system x86_64, darwin13.4.0
ui RStudio (0.99.896)
language (EN)
collate zh_TW.UTF-8
tz Asia/Taipei
date 2018-04-07
[關鍵字]:
選擇性,也許未來有用
作者: jasonfghx (工人)   2018-04-07 17:48:00
版本?
作者: celestialgod (天)   2018-04-07 18:01:00
更新tibble
作者: Edster (Edster)   2018-04-08 04:17:00
應該要先更新R,你的R版本也太舊,可能因此不能更新其他相依的pkg

Links booklink

Contact Us: admin [ a t ] ucptt.com