无法安装 tidyverse 软件包集

问题描述 投票:0回答:1

我打开 RStudio 应用程序并尝试安装 tidyverse 软件包。我收到以下一系列错误消息:

* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'rlang' 1.0.2 is being loaded, but >= 1.1.0 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/lifecycle'
Warning in install.packages :
  installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package 'callr' ...
** package 'callr' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'processx' 3.5.3 is being loaded, but >= 3.6.1 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/callr'
Warning in install.packages :
  installation of package ‘callr’ had non-zero exit status
* installing *source* package 'knitr' ...
** package 'knitr' successfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'xfun' 0.30 is being loaded, but >= 0.39 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'knitr'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/knitr'
Warning in install.packages :
  installation of package ‘knitr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'bslib'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/bslib'
Warning in install.packages :
  installation of package ‘bslib’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'tidyselect'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/tidyselect'
Warning in install.packages :
  installation of package ‘tidyselect’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'gtable'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/gtable'
Warning in install.packages :
  installation of package ‘gtable’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'gargle'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/gargle'
Warning in install.packages :
  installation of package ‘gargle’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'forcats'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/forcats'
Warning in install.packages :
  installation of package ‘forcats’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'hms'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/hms'
Warning in install.packages :
  installation of package ‘hms’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'pillar'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/pillar'
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'rvest'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/rvest'
Warning in install.packages :
  installation of package ‘rvest’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'stringr'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/stringr'
Warning in install.packages :
  installation of package ‘stringr’ had non-zero exit status
ERROR: dependency 'hms' is not available for package 'progress'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/progress'
Warning in install.packages :
  installation of package ‘progress’ had non-zero exit status
ERROR: dependencies 'bslib', 'knitr', 'stringr' are not available for package 'rmarkdown'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/rmarkdown'
Warning in install.packages :
  installation of package ‘rmarkdown’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'stringr' are not available for package 'broom'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/broom'
Warning in install.packages :
  installation of package ‘broom’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'pillar', 'tidyselect' are not available for package 'dbplyr'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/dbplyr'
Warning in install.packages :
  installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'tidyselect' are not available for package 'dtplyr'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/dtplyr'
Warning in install.packages :
  installation of package ‘dtplyr’ had non-zero exit status
ERROR: dependencies 'gtable', 'lifecycle' are not available for package 'ggplot2'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/ggplot2'
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies 'gargle', 'lifecycle', 'pillar' are not available for package 'googledrive'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/googledrive'
Warning in install.packages :
  installation of package ‘googledrive’ had non-zero exit status
ERROR: dependencies 'gargle', 'googledrive', 'lifecycle' are not available for package 'googlesheets4'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/googlesheets4'
Warning in install.packages :
  installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependencies 'broom', 'tidyselect' are not available for package 'modelr'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/modelr'
Warning in install.packages :
  installation of package ‘modelr’ had non-zero exit status
ERROR: dependencies 'callr', 'knitr', 'lifecycle', 'rmarkdown' are not available for package 'reprex'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/reprex'
Warning in install.packages :
  installation of package ‘reprex’ had non-zero exit status
ERROR: dependencies 'broom', 'dbplyr', 'dtplyr', 'forcats', 'ggplot2', 'googledrive', 'googlesheets4', 'hms', 'modelr', 'pillar', 'reprex', 'rvest', 'stringr' are not available for package 'tidyverse'
* removing 'C:/Users/Aaron.Hodges/OneDrive - Serco/Documents/R/win-library/4.0/tidyverse'
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

有人可以帮我解决这个问题吗?我不知道这一切意味着什么。

我尝试更新 RTools 但没有成功。

r tidyverse
1个回答
0
投票

我在尝试更新

tidyverse
包时遇到了同样的错误,并使用了以下解决方案:

我安装了以下软件包:

安装.packages(“cli”)

安装完成后,我重新运行

tidyverse
安装并成功运行。

© www.soinside.com 2019 - 2024. All rights reserved.