【问题标题】:tried to load tidyverse but I'm met with "> library(tidyverse) Error in library(tidyverse) : there is no package called ‘tidyverse’"尝试加载 tidyverse,但遇到 "> library(tidyverse) 库中的错误 (tidyverse):没有名为 'tidyverse' 的包"
【发布时间】:2021-01-13 12:55:48
【问题描述】:

我运行了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'

【问题讨论】:

    标签: r tidyverse


    【解决方案1】:

    很可能是因为你
    a) 忘记install.packages('tidyverse')

    b) 'install.packages('tidyverse')' 失败

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-30
      相关资源
      最近更新 更多