gpt4 book ai didi

r - 无法加载 tidyverse 库

转载 作者:行者123 更新时间:2023-12-05 06:39:37 25 4
gpt4 key购买 nike

刚刚将 R 和 RStudio 升级到

> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 4.0
year 2017
month 04
day 21
svn rev 72570
language R
version.string R version 3.4.0 (2017-04-21)
nickname You Stupid Darkness

rstudio版本是

Version 1.0.143 – © 2009-2016 RStudio, Inc.

然后我安装 tidyverse 包

install.packages("tidyverse")

结果

trying URL 'https://dirichlet.mat.puc.cl/bin/windows/contrib/3.4/tidyverse_1.1.1.zip'
Content type 'application/zip' length 42211 bytes (41 KB)
downloaded 41 KB

package ‘tidyverse’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\...\AppData\Local\Temp\Rtmp6vaNT1\downloaded_packages

一切正常。

现在,当尝试加载 tidyverse 库时:

> library("tidyverse")
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘cellranger’

失败。

我可以单独加载所有包,但由于某种原因不能加载 tidyverse 包。

最佳答案

解决方案是安装依赖项:

install.packages("cellranger")

(@neilfws 在评论中回答)

关于r - 无法加载 tidyverse 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44232958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com