After installing R 4.0.0, I got a message that Rtools was out of date. I installed the new version of Rtools and now get the message:
WARNING: Rtools is required to build R packages but is not currently installed.
I tried setting the path as suggested as a previous fix (Sys.setenv(PATH = paste(Sys.getenv("PATH"), "C:\RTools40", "C:\RTools40\mingw64\bin", sep = ";")), etc.). This did not work.
Hi @Sookies_Dad,
Welcome to the RStudio Community Forum.
The "\" character is an "escape" character in R; it has special meaning and so cannot be used singly in Windows directory paths. Try this:
# What's in the old PATH?
Sys.getenv("PATH")
Sys.setenv(PATH = paste(Sys.getenv("PATH"),
"C:\\RTools40",
"C:\\RTools40\\mingw64\\bin",
sep = ";"))
# Did it work (look at the end)?
Sys.getenv("PATH")
I updated R in my system without any problem, though I changed permanently for my user instead of just for the R session. I mentioned my steps here. Can you check whether those work for you or not?