安装tidyverse包
install.packages("tidyverse")
出现异常
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
将程序包安装入‘C:/Users/86178/AppData/Local/R/win-library/4.2’
(因为‘lib’没有被指定)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/tidyverse_2.0.0.zip'
Content type 'application/zip' length 430863 bytes (420 KB)
downloaded 420 KB
尝试安装Rtools,但以失败告终
最终解决方法是:
Rstudio中菜单->tools->Check for Package updates->select all->install update->重启
后再检查更新安装包,使包的各版版本统一到最新。
接着再次尝试安装,显示成功。
问题解决思路来源:石榴花专场R语言安装包tidyverse时,报Error: package or namespace load failed for ‘tidyverse’ 错误_r语言tidyverse包无法安装_石榴花专场的博客-CSDN博客