windows下R报错解决方法
2021-04-26 本文已影响0人
R语言数据分析指南
通过devtools安装github版R包报如下错
devtools::install_github("yutannihilation/gghighlight")
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): The namespace ‘processx’ 3.4.5 is loaded, but what is required is >= 3.5.0
解决方法
- Install Rtools (https://cran.r-project.org/bin/windows/Rtools/ )
- install.packages(c("processx", "callr"), type = "source")
> install.packages(c("processx", "callr"), type = "source")
Installing packages into ‘C:/Users/fxl/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
试开URL’http://cran.rstudio.com/src/contrib/processx_3.5.1.tar.gz'
Content type 'application/x-gzip' length 138959 bytes (135 KB)
downloaded 135 KB
试开URL’http://cran.rstudio.com/src/contrib/callr_3.7.0.tar.gz'
Content type 'application/x-gzip' length 74518 bytes (72 KB)
downloaded 72 KB
* installing *source* package 'processx' ...
** 成功将'processx'程序包解包并MD5和检查
** using staged installation
** libs