Turns out when I installed RTools I left out the R 2.15.x+ toolchain option in the installation, which lead to the gcc never being installed. Hopefully, this post will serve as a diagnostic guide if RStudio fails to register RTools.
Thank you everyone for your help.
Answer from coatless on Stack OverflowTurns out when I installed RTools I left out the R 2.15.x+ toolchain option in the installation, which lead to the gcc never being installed. Hopefully, this post will serve as a diagnostic guide if RStudio fails to register RTools.
Thank you everyone for your help.
I had the same error, and I had installed the tool chain (I believe).
My fix was to move the R Tools paths to the front of my PATH variable.
Can't get cmdstanr (or RTools42) to install properly
install.packages - Error installing Rtools42 in R version 4.2.2 - Stack Overflow
Rtools not found after R 4.0.0 installation
r - RStudio not finding RTools - Stack Overflow
Videos
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????