无法安装 Tidyverse。扫帚问题
Unable to install Tidyverse. Broom issues
每当我尝试在 R v 3.6.2 中安装 tidyverse 时
我收到以下错误消息:
Installing package into ‘C:/Users/daeb/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependency ‘broom’
There is a binary version available but the source version is later:
binary source needs_compilation
broom 0.5.3 0.5.4 FALSE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tidyverse_1.3.0.zip'
Content type 'application/zip' length 440101 bytes (429 KB)
downloaded 429 KB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\daeb\AppData\Local\Temp\RtmpuWXq4I\downloaded_packages
installing the source package ‘broom’
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.5.4.tar.gz'
Content type 'application/x-gzip' length 1228129 bytes (1.2 MB)
downloaded 1.2 MB
* installing *source* package 'broom' ...
** package 'broom' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Fejl i loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'zeallot'
Kald: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Kørsel stoppet
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/daeb/Documents/R/win-library/3.6/broom'
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
我试过重新安装 R 和 Rstudio,但没有解决问题。我尝试安装 Rtools,但它也不起作用。看来我必须用扫帚解决 source/binary 问题,但我不知道如何解决。
正如@hplieninger 所建议的,最近的问题是 broom 的安装正在寻找未安装的 zeallot
包:
there is no package called 'zeallot'
您应该尝试手动安装 zeallot
软件包 (install.packages("zeallot")
),然后再次尝试安装 tidyverse。
当 R 询问您是否要从源代码而不是二进制文件安装具有更新源代码版本的包时,说 "no" 可能也会有所帮助。 (可能发生的最糟糕的事情是你最终得到了一些软件包的旧版本。)
然而提出这个要求真是令人惊讶。您在使用 install.packages("tidyverse")
吗?您是否指定了类似 dependencies=TRUE
?
的内容
因为根据CRAN索引页数
- current version of broom(0.5.4,显然与 R 试图为您安装的版本相同)不直接导入
zeallot
:它 Depends
仅在 R 和
Imports: backports, dplyr, generics (≥ 0.0.2), methods, nlme, purrr, reshape2, stringr, tibble, tidyr
- 显然不需要 current version of zeallot。使用它的软件包是:
Reverse imports: completejourney, graphTweets, ipumsr, keras, mlflow, statsExpressions
Reverse suggests: listarrays, SDMtune, vctrs
每当我尝试在 R v 3.6.2 中安装 tidyverse 时
我收到以下错误消息:
Installing package into ‘C:/Users/daeb/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependency ‘broom’
There is a binary version available but the source version is later:
binary source needs_compilation
broom 0.5.3 0.5.4 FALSE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tidyverse_1.3.0.zip'
Content type 'application/zip' length 440101 bytes (429 KB)
downloaded 429 KB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\daeb\AppData\Local\Temp\RtmpuWXq4I\downloaded_packages
installing the source package ‘broom’
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.5.4.tar.gz'
Content type 'application/x-gzip' length 1228129 bytes (1.2 MB)
downloaded 1.2 MB
* installing *source* package 'broom' ...
** package 'broom' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Fejl i loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'zeallot'
Kald: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Kørsel stoppet
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/daeb/Documents/R/win-library/3.6/broom'
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
我试过重新安装 R 和 Rstudio,但没有解决问题。我尝试安装 Rtools,但它也不起作用。看来我必须用扫帚解决 source/binary 问题,但我不知道如何解决。
正如@hplieninger 所建议的,最近的问题是 broom 的安装正在寻找未安装的 zeallot
包:
there is no package called 'zeallot'
您应该尝试手动安装 zeallot
软件包 (install.packages("zeallot")
),然后再次尝试安装 tidyverse。
当 R 询问您是否要从源代码而不是二进制文件安装具有更新源代码版本的包时,说 "no" 可能也会有所帮助。 (可能发生的最糟糕的事情是你最终得到了一些软件包的旧版本。)
然而提出这个要求真是令人惊讶。您在使用 install.packages("tidyverse")
吗?您是否指定了类似 dependencies=TRUE
?
因为根据CRAN索引页数
- current version of broom(0.5.4,显然与 R 试图为您安装的版本相同)不直接导入
zeallot
:它Depends
仅在 R 和
Imports: backports, dplyr, generics (≥ 0.0.2), methods, nlme, purrr, reshape2, stringr, tibble, tidyr
- 显然不需要 current version of zeallot。使用它的软件包是:
Reverse imports: completejourney, graphTweets, ipumsr, keras, mlflow, statsExpressions
Reverse suggests: listarrays, SDMtune, vctrs