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() command, I get the following warning message:
install.packages("ggplot2")
#WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Thanks @mikecrobp, but Rtools 4.3 is apparently not compatible with R4.3.0. I tried to uninstall Rtools 4.2 and install Rtools 4.3, but then I got a message stating stat Rtools 4.3 was not compatible with my version of R [R4.3.0].
Thanks @mikecrobp
It somehow seems weird to me how R 4.3.0 and Rtools 4.2/4.3 interact:
when I install Rtools 4.3 and uninstall Rtools 4.2, I get the following message:
library(pkgbuild)
has_rtools(debug = TRUE)
# WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 4.3.0
# was found. (Only the following incompatible version(s) of Rtools were found: 4.3.5550)
# Please download and install Rtools 4.2
when I install Rtools 4.2 and uninstall Rtools 4.3, I get the following message:
library(pkgbuild)
has_rtools(debug = TRUE)
# Found in Rtools 4.2 installation folder
# [1] TRUE
install.packages("ggplot2")
# WARNING: Rtools is required to build R packages but is not currently installed.
# Please download and install the appropriate version of Rtools before proceeding:
when I install both Rtools 4.2 and Rtools 4.3, everything runs smoothly:
library(pkgbuild)
has_rtools(debug = TRUE)
# Found in Rtools 4.2 installation folder
# [1] TRUE
install.packages("ggplot2")
# Installing package into...
But I guess, I will just keep Rtools 4.3 and ignore the warning message from has_rtools().
I just checked. I hadn't removed Rtools 4.2 either. So maybe there is an interaction between the 2 versions (or something left out in 4.3). I am not going to experiment though!