load_private_package("glue") 中的错误:无法从私有库加载胶水
Error in load_private_package("glue") : Cannot load glue from the private library
我正在尝试使用 pak
R
软件包安装 R
软件包,如下所示:
library(pak)
pkg_install("usethis")
但是,我收到所有软件包的以下错误消息:
Error in load_private_package("glue") :
Cannot load glue from the private library
Session 信息
sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] 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] pak_0.2.1
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 knitr_1.37.4 xml2_1.3.3
[4] magrittr_2.0.2 rvest_1.0.2 munsell_0.5.0
[7] colorspace_2.0-3 viridisLite_0.4.0 R6_2.5.1
[10] rlang_1.0.1.9000 fastmap_1.1.0 stringr_1.4.0
[13] httr_1.4.2 tools_4.1.2 webshot_0.5.2
[16] pacman_0.5.1 xfun_0.29.3 cli_3.2.0
[19] htmltools_0.5.2 systemfonts_1.0.4 digest_0.6.29
[22] lifecycle_1.0.1 kableExtra_1.3.4 purrr_0.3.4
[25] glue_1.6.1 evaluate_0.15 rmarkdown_2.11.22
[28] stringi_1.7.6 compiler_4.1.2 scales_1.1.1
[31] svglite_2.1.0
我解决了删除 pak 并重新安装它的问题
install.packages("pak", type = "source")
我正在尝试使用 pak
R
软件包安装 R
软件包,如下所示:
library(pak)
pkg_install("usethis")
但是,我收到所有软件包的以下错误消息:
Error in load_private_package("glue") :
Cannot load glue from the private library
Session 信息
sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] 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] pak_0.2.1
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 knitr_1.37.4 xml2_1.3.3
[4] magrittr_2.0.2 rvest_1.0.2 munsell_0.5.0
[7] colorspace_2.0-3 viridisLite_0.4.0 R6_2.5.1
[10] rlang_1.0.1.9000 fastmap_1.1.0 stringr_1.4.0
[13] httr_1.4.2 tools_4.1.2 webshot_0.5.2
[16] pacman_0.5.1 xfun_0.29.3 cli_3.2.0
[19] htmltools_0.5.2 systemfonts_1.0.4 digest_0.6.29
[22] lifecycle_1.0.1 kableExtra_1.3.4 purrr_0.3.4
[25] glue_1.6.1 evaluate_0.15 rmarkdown_2.11.22
[28] stringi_1.7.6 compiler_4.1.2 scales_1.1.1
[31] svglite_2.1.0
我解决了删除 pak 并重新安装它的问题
install.packages("pak", type = "source")