Rstudio WARNING: Rtools is requi

2022-04-09  本文已影响0人  惊鸿影

最近安装R包时出现“WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:”报错,需要下载rtools.

rtools安装

从r语言官网下载rtools,官网
获得安装包之后直接安装。
安装之后运行还是有warning出现,还需要配置路径,可以进入Rstudio,输入以下命令配置路径

writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")

重启Rstudio,输入

Sys.which("make")

查看是不是已经配置成功,若出现类似以下的提示,表示已经配置成功


image.png

然后就可以使用了

上一篇 下一篇

猜你喜欢

热点阅读