As Roland said, Rtools is not a R packages so you must install here: https://cran.r-project.org/bin/windows/Rtools/history.html (according to your R version).

Or you can find out whether your Rtools is already installed or not

Copy# install.packages("pkgbuild")
library(pkgbuild) # load package
find_rtools()

I hope you find the way!

Answer from ainsuotain on Stack Overflow
🌐
R Project
search.r-project.org › CRAN › refmans › pkgbuild › html › has_rtools.html
Is Rtools installed? - R Project
Afterward, run rtools_path() to find out where it's installed. rtools_path() has_rtools(debug = FALSE) check_rtools(debug = FALSE) Either a visible TRUE if rtools is found, or an invisible FALSE with a diagnostic message().
🌐
Rdrr.io
rdrr.io › cran › pkgbuild › man › has_rtools.html
has_rtools: Is Rtools installed? in pkgbuild: Find Tools Needed to Build R Packages
June 8, 2025 - Afterward, run rtools_path() to find out where it's installed. rtools_path() has_rtools(debug = FALSE) check_rtools(debug = FALSE) Either a visible TRUE if rtools is found, or an invisible FALSE with a diagnostic message().
Discussions

r - Install Rtools and check if I can use it - Stack Overflow
Installing package into ... in install.packages : package ‘Rtools’ is not available (for R version 3.4.3) I cannot understand that "Rtools is not available for R version 3.4.3" because it worked on another computer a couple of days ago. It would be helpful if you give me a comment about this problem. ... I found the site that helps me to check if I can use ... More on stackoverflow.com
🌐 stackoverflow.com
install.packages() tells me that Rtools is not installed, but has_rtools() is able to find Rtools in the default folder
Hi, I am having trouble understanding what is happening with my Rtools installation. I have R4.3.0 and Rtools 4.2 is installed in the recommended folder [C:/rtools42]. However, everytime I run an install.packages() co… More on forum.posit.co
🌐 forum.posit.co
1
0
May 3, 2023
RStudio do not find Rtools and offer to install even if already installed
I think I get the message because .Call("rs_canBuildCpp") returns FALSE. I think this function is not checking the PATH environment variable. If I uninstall Rtools, get the installer directly from CRAN, double click on it and install Rtools in C:/Rtools, configure PATH with new paths, oddly ... More on github.com
🌐 github.com
58
September 30, 2018
Rtools is required to build R packages but is not currently installed
Hi how can i evaluate this problem what should i do the error is: WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ Installing package ... More on forum.posit.co
🌐 forum.posit.co
0
1
February 21, 2021
🌐
Reddit
reddit.com › r/rstats › rtools isn't recognized by r
r/rstats on Reddit: Rtools isn't recognized by R
May 28, 2021 -

Hi. I updated R recently and everything turned in a mess. Somehow R (nor Rstudio) don't find Rtools but devtools keeps saying that Rtools is in effect installed.

I checked my Path variables several times with no luck. As far as I know, Sys.which("make") points to the correct location but Sys.which("gcc") fails. I tried using the instruction Sys.setevn to point BINPREF properly with no luck too.

Any tips or advice? I run out of ideas checking SE and Rstudio community

Edit: Currently working on a Win 10, with R 4.1.0

Edit 2: already reinstalled Rtools+R with no results. Also Path was updated to point to rtools40/usr/bin as Rtools (windows) help suggest

Edit 3: [SOLVED] Thanks everyone, but none of the solutions works. I decided to use a killer approach (clean installation of windows) and it worked.

🌐
R-lib
pkgbuild.r-lib.org › reference › has_rtools.html
Is Rtools installed? — rtools_path • pkgbuild
The default installation process does not add it, so this script finds it (looking first on the path, then in the registry). It also checks that the version of rtools matches the version of R. has_rtools() determines if Rtools is installed, caching the results. Afterward, run rtools_path() ...
🌐
Rdrr.io
rdrr.io › github › nwfsc-assess › VASTWestCoast › man › check_rtools.html
check_rtools: Check Rtools is installed properly in nwfsc-assess/VASTWestCoast: Estimation and simulation with VAST for the US West Coast
July 6, 2023 - Check that Rtools is properly installed on your machine such that packages and code within packages can be compiled. ... Warning - this function was built by Windows users and may not be sufficient for other operating systems. A new version of Rtools is required for R releases > 4.0.0 https://cran.r-project.org/bin/windows/Rtools/ Various summaries are printed to the screen to help you troubleshoot your installation of Rtools. If you make it to the end of this function successfully, then a value of 0 will be returned and you should be able to then run check_TMB() to see if TMB is properly installed for your system.
🌐
RDocumentation
rdocumentation.org › packages › installr › versions › 0.17.5 › topics › install.Rtools
install.Rtools function - RDocumentation
Allows the user to choose, downloads and install - the latest version of Rtools for Windows. By default, the function searches if RTools is installed, if not, it checks if it knows which version to isntall for the current R version, and if not - it asks the user to choose which Rtools version ...
Find elsewhere
🌐
R Project
cran.r-project.org › bin › windows › Rtools › rtools40.html
Using Rtools4 on Windows
Restart R, and verify that make can be found, which should show the path to your Rtools installation. Sys.which("make") ## "C:\\rtools40\\usr\\bin\\make.exe" ... If this succeeds, you’re good to go!
🌐
Verouden
verouden.net › post › 2022 › 07 › 05 › rtools-installation
Rtools installation on a Windows 10/11 or a WURclient computer | Maikel P.H. Verouden, Ph.D.
July 5, 2022 - For Rtools 4.5 there is an easy way to check, that the installation of Rtools was successful. ... When R returns "C:\\rtools45\\usr\\bin\\make.exe", you know that Rtools was successfully installed. For Rtools 4.0 the returned path will be empty.
🌐
GitHub
github.com › rstudio › rstudio › issues › 3563
RStudio do not find Rtools and offer to install even if already installed · Issue #3563 · rstudio/rstudio
September 30, 2018 - I think I get the message because .Call("rs_canBuildCpp") returns FALSE. I think this function is not checking the PATH environment variable. If I uninstall Rtools, get the installer directly from CRAN, double click on it and install Rtools in C:/Rtools, configure PATH with new paths, oddly everything is working now.
Author   rstudio
🌐
Stat545
stat545.com › system-prep.html
Chapter 31 System preparation for package development | STAT 545
Hopefully you will simply see a message saying TRUE, indicating that Rtools is properly installed. But if there was a problem, you will see a longer message with next steps.
🌐
Talgalili
talgalili.github.io › installr › reference › install.Rtools.html
Downloads and installs Rtools — install.Rtools • installr
Install compatible version of Rtools for Windows. By default, the function searches if a compatible Rtools is installed, if not, it offers to install the latest compatible version. install.Rtools(check = TRUE, check_r_update = TRUE, GUI = TRUE, ...)
🌐
Posit Community
forum.posit.co › general
Rtools is required to build R packages but is not currently installed - General - Posit Community
February 21, 2021 - Hi how can i evaluate this problem what should i do the error is: WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/Mephi/OneDrive/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified)
🌐
OHDSI
ohdsi.github.io › Hades › rSetup.html
Setting up the R environment
Second, to avoid problems due to ... also shown below. Once completed, you should be able to select R from your Start Menu. Go to https://cran.r-project.org/bin/windows/Rtools/rtools44/......
🌐
DoIT Client Portal
tdx.umsystem.edu › TDClient › 36 › DoIT › KB › ArticleDet
How To: Verify Rstudio is Using User Installed Rtools
2. With the devtools package installed, at the RStudio > Console prompt enter 'devtools::find_rtools()'. This should return TRUE as shown below, verifying Rstudio is using your Rtools installation.
🌐
Reddit
reddit.com › r/rlanguage › help wanted: trouble installing and loading packages. rtools isn’t in my version of r?
r/Rlanguage on Reddit: Help wanted: Trouble installing and loading packages. Rtools isn’t in my version of R?
March 28, 2023 -

Let me start with: this is on my work computer and I work for a place where I am not allowed to download any software myself so I can’t try to update.

I have R version 4.2.1 (2022-06-23 ucrt).

So I was trying to download the tidy verse & ggplot2 and got the following error message:

library(ggplot2) Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

there is no package called ‘colorspace’ In addition: Warning message: package ‘ggplot2’ was built under R version 4.2.3

——————-.

This led me to try to download colorspace, but that pulled this error:

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

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

Installing package into ‘C:/Users/twaj/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/colorspace_2.1-0.zip'

Content type 'application/zip' length 2628852 bytes (2.5 MB) downloaded 2.5 MB package ‘colorspace’ successfully unpacked and MD5 sums checked The downloaded binary packages are in [the folder].

———————-.

So I tried to download Rtools but i get the same error. I need Rtools to download Rtools.

Any suggestions????

🌐
Stan Forums
discourse.mc-stan.org › interfaces › rstan
Warning that I need to install Rtools when I already have it installed - RStan - The Stan Forums
September 12, 2023 - Howdy! I am trying to install rstan on a computer with Windows 10 that is very troublesome due to lots of clamped down security. I have R 4.3.0 and Rtools 4.3 installed. I can only install binaries from a http CRAN repository on this machine. I seem to have successfully installed the new rstan 2.26 from CRAN, but when I ran the example model, I got the following warnings: WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 4.3.0 was found.
🌐
RDocumentation
rdocumentation.org › packages › maketools › versions › 1.2.5 › topics › rtools
rtools function - RDocumentation
The function rtools_find shows information about a suitable version of Rtools installed on your system. If needed, it automatically adds make to the PATH of the current session. If rtools_find() returns a list (containing toolchain information), this means everything is ready to install packages ...