r - 无法在 rstudio 云中加载 tidyverse
问题描述
无法在 rstudio 云中加载 tidyverse。我收到以下错误,我尝试删除 rlang 和 tidyverse,然后再次重新安装,但问题仍然存在。能否请你帮忙?非常感谢。
library(tidyverse)
#> Error: package or namespace load failed for 'tidyverse' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
#> namespace 'rlang' 0.4.5 is already loaded, but >= 0.4.5.9000 is required
随后,我能够使用以下命令更新 rlang,但是 rlang 无法处理下面粘贴的错误。
devtools::install_github("r-lib/rlang", build_vignettes = TRUE)
sessionInfo()
#> R version 3.6.0 (2019-04-26)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 16.04.6 LTS
#>
#> Matrix products: default
#> BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0
#> LAPACK: /usr/lib/atlas-base/atlas/liblapack.so.3.0
#>
#> locale:
#> [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
#> [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
#> [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
#> [10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] compiler_3.6.0 magrittr_1.5 tools_3.6.0 htmltools_0.4.0
#> [5] yaml_2.2.1 Rcpp_1.0.4 stringi_1.4.6 rmarkdown_1.13
#> [9] highr_0.8 knitr_1.23 stringr_1.4.0 xfun_0.7
#> [13] digest_0.6.25 rlang_0.4.5.9000 evaluate_0.14
Created on 2020-04-27 by the reprex package (v0.3.0)
However when i loading the rlang using the library(rlang) I am getting the error.
library(rlang)
Error in value[3L] :
Package ‘rlang’ version 0.4.5 cannot be unloaded:
Error in unloadNamespace(package) : namespace ‘rlang’ is imported by ‘vctrs’, ‘testthat’, ‘reprex’, ‘lifecycle’, ‘ellipsis’, ‘usethis’, ‘ggplot2’, ‘tibble’, ‘tidyquant’, ‘htmltools’, ‘pillar’, ‘pkgload’ so cannot be unloaded
and the above error with loading the tidyverse continues.
解决方案
推荐阅读
- vbscript - 什么会导致 Mailgun SMTP 的 ASP 脚本错误?
- android - 如何在文档范围内使用 setInterval
- python - 如何将 CP-SAT 公式(在 python 中)中的目标指定为所有决策变量值的最大值的最小化?
- css - Blazor css 如何显示无法重新连接到服务器。重新加载页面以恢复功能标题
- json - 无法将多个 Jsonb 行合并为一行
- c - 理解以下程序的问题
- python - 使用连接通过连接表获取值
- google-calendar-api - 在不添加 Google Meet 视频会议的情况下在 Google 日历中创建活动
- javascript - JavaScript / TypeScript 上是否有“节点”类型?ts(2345)
- javascript - 我添加了图像但没有出现