我运行了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'发布于 2021-01-13 21:09:42
很可能是因为你
a)忘记install.packages('tidyverse')
或
b) 'install.packages('tidyverse')‘失败
您可能更喜欢{pacman}方法
其中p_load()检查是否已安装,
然后安装/加载或
只需根据需要加载
https://stackoverflow.com/questions/65702425
复制相似问题