繁体   English   中英

尝试加载 tidyverse 但我遇到“> library(tidyverse) 库中的错误 (tidyverse):没有 package 称为 'tidyverse'”

[英]tried to load tidyverse but I'm met with “> library(tidyverse) Error in library(tidyverse) : there is no package called ‘tidyverse’”

我运行了install.packages("tidyverse")并完成了安装。

最后出现以下错误和警告:

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : 
  cannot open the connection
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 61440 != reported length 104968
2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
  cannot open compressed file 'rprojroot/DESCRIPTION', probable reason 'No such file or directory'

很可能是因为你
a) 忘记安装install.packages('tidyverse')
或者
b) 'install.packages('tidyverse')' 失败

你可能更喜欢 {pacman} 方法
其中p_load()检查是否已安装,
然后安装/加载或
按需加载

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM