Rtools isn't being detected

I'm trying to install some packages, and keep getting the following error:

WARNING: Rtools 4.2 s required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

http://cran.rstudio.com/bin/windows/Rtools/

I downloaded and installed the link in the error multiple times, and ran the following code:

install.packages("Rtools")

But even this installation of Rtools returns the same error. Any insight is greatly appreciated

Rtools is not an R package so this isn't going to work.

What version of RTools you have installed? Have you changed the default installation options? Have you restarted your R session after installing RTools?

I had Rtools 4.1.2. I downloaded and ran the installer for 4.2. And I did restart R and Rstudio after doing so.

There is no RTools 4.1.2, maybe you are downloading the wrong installer.

Just to be sure, if you are running R >= 4.2 you should have RTools42 installed and this is the link

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

If you do not change the default installation options, you don't need to configure anything else, just restar your R session.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.