安装胶水后整理问题

问题描述 投票:0回答:1

我在安装胶水后加载tidyverse时遇到问题。

library(tidyverse)之后我有以下错误

错误:loadNamespace中的'dplyr'的包或命名空间加载失败(j < - i [[1L]],c(lib.loc,.libPaths()),versionCheck = vI [[j]]):没有包叫'胶水'

我试过的一些事情:

  1. remove.packages("glue")
  2. remove.packages("tidyverse")
  3. install.packages("tidyverse")
  4. 重启R会话

Edit

> sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] odbc_1.1.4       cellranger_1.1.0

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.15       pillar_1.1.0       compiler_3.4.3     plyr_1.8.4         bindr_0.1         
 [6] tools_3.4.3        digest_0.6.12      bit_1.1-12         memoise_1.1.0      tibble_1.4.1      
[11] gtable_0.2.0       rlang_0.1.6.9003   DBI_0.7            yaml_2.1.14        bindrcpp_0.2      
[16] gridExtra_2.3      withr_2.0.0        knitr_1.19         hms_0.3            devtools_1.13.3   
[21] stats4_3.4.3       bit64_0.9-7        grid_3.4.3         inline_0.3.14      R6_2.2.2          
[26] rstan_2.17.3       ggplot2_2.2.1      blob_1.1.0         scales_0.5.0       StanHeaders_2.17.2
[31] assertthat_0.2.0   colorspace_1.3-2   lazyeval_0.2.1     munsell_0.4.3 
r tidyverse
1个回答
1
投票

dplyr依赖于胶水,似乎它在你的机器上安装得不好(如果有的话)。

如果安装了glue,您应该考虑先卸载它。

然后,尝试使用以下命令重新安装胶水包:devtools::install_github("tidyverse/glue")

© www.soinside.com 2019 - 2024. All rights reserved.