rr-devtools

Rtools not found by devtools, but ls and gcc are on PATH


Sys.which('gcc')
                                                                 gcc 
"C:\\Users\\[redacted]\\Documents\\aps\\Rtools\\mingw_32\\bin\\gcc.exe" 

Sys.which('ls')
                                                       ls 
"C:\\Users\\[redacted]\\Documents\\aps\\Rtools\\bin\\ls.exe" 

find_rtools(cache=FALSE,debug=TRUE)

Scanning path...
ls : C:\Users\[redacted]\Documents\aps\Rtools\bin\ls.exe 
"C:/Users/[redacted]/Documents/aps/rportnov/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD  \
  config CC 

Scanning registry...
WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools 3.4 from http://cran.r-project.org/bin/windows/Rtools/.

Solution

  • This was a problem in the registry generated during installation, so I reinstalled it and it worked.