美文网首页
windows下R报错解决方法

windows下R报错解决方法

作者: R语言数据分析指南 | 来源:发表于2021-04-26 12:19 被阅读0次

通过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
解决方法

  1. Install Rtools (https://cran.r-project.org/bin/windows/Rtools/ )
  2. 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

相关文章

网友评论

      本文标题:windows下R报错解决方法

      本文链接:https://www.haomeiwen.com/subject/qfterltx.html