I repeatedly get the following error:
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/OWNER/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
I followed the instructions here, ran Rtools40 installer as admin which gave no error. I put RTools on PATH using .Renviron, and as a check, the instructions say test this:
> Sys.which("make")
make
"C:\\rtools40\\usr\\bin\\make.exe"
Yet i still get the same error from RStudio.
This thread suggested reinstalling RTools (no help) and running RStudio as admin (no help). Otherwise that thread directs to a similar RStudio issue, but that is for an earlier version for RTools and at the end of the thread it instructs to RTools40 which is what I have.