6

Every time when I install package this warning occurs :WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

I have been using R-Studio since 4 months and I did not come across this warning before. Despite getting this warning every time my installation succeeds.

Phil
  • 7,287
  • 3
  • 36
  • 66
Hasnain
  • 679
  • 7
  • 18
  • 2
    I can confirm. I'm seeing the same on windows machines without Rtools. You should report it to the RStudio support. – Roland Oct 25 '19 at 12:42
  • Does this answer your question? [Rtools is required to build R packages but is not currently installed](https://stackoverflow.com/questions/59022977/rtools-is-required-to-build-r-packages-but-is-not-currently-installed) – Christoph Nov 25 '22 at 08:08

3 Answers3

3

From here: missing Rtools, should I be worried?

This means that if you are going to install packages that need compilation, you also have to install Rtools in your system.

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

Community
  • 1
  • 1
Jim G.
  • 15,141
  • 22
  • 103
  • 166
0

I would like to translate the revolution measure from https://blog.csdn.net/weixin_42098685/article/details/105864543.

First step: Download and install the right Rtools for your R. Second step:
Tell the Rstudio where the Rtools is installed. 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

enter image description here

Phil
  • 7,287
  • 3
  • 36
  • 66
0

The simplest way to solve it is to go to the following link: [1]: https://cran.rstudio.com/bin/windows/Rtools/

Download the Rtools, restart your computer and it´s all solved !!