[问题] 套件安装异常(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