简体   繁体   English

警告:需要 Rtools

[英]Warning: Rtools is required

Every time when I install package this warning occurs: WARNING: Rtools is required to build R packages but is not currently installed.每次我安装 package 时都会出现此警告:警告:需要 Rtools 来构建 R 包,但当前未安装。 Please download and install the appropriate version of Rtools before proceeding:请在继续之前下载并安装适当版本的 Rtools:

I have been using R-Studio since 4 months and I did not come across this warning before.自 4 个月以来我一直在使用 R-Studio,之前没有遇到过这个警告。 Despite getting this warning every time my installation succeeds.尽管每次安装成功时都会收到此警告。

From here: missing Rtools, should I be worried?从这里开始: 缺少 Rtools,我应该担心吗?

This means that if you are going to install packages that need compilation, you also have to install Rtools in your system.这意味着如果您要安装需要编译的软件包,您还必须在系统中安装 Rtools。

https://cran.r-project.org/bin/windows/Rtools/ https://cran.r-project.org/bin/windows/Rtools/

I would like to translate the revolution measure fromhttps://blog.csdn.net/weixin_42098685/article/details/105864543 .我想从https://blog.csdn.net/weixin_42098685/article/details/105864543翻译革命措施。

First step: Download and install the right Rtools for your R.第一步:为您的 R 下载并安装正确的 Rtools。 Second step:第二步:
Tell the Rstudio where the Rtools is installed.告诉 Rstudio Rtools 的安装位置。 Use this command (the sentence between the ##):使用此命令(## 之间的句子):

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

And it should Run as administrator.它应该以管理员身份运行。

Finally: Type the sentence between ## to examine whether we have succeed:最后:输入##之间的句子,检查是否成功:

 Sys.which("make")

if you see a path rather than blank it means it had succeed.如果您看到一条路径而不是空白,则表示它已成功。 Like this像这样

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM