I’m new to this so please do bear in mind I won’t understand any replies couched in technical language…
I am trying to install RStan using the instructions at:
Windows 10 x64, R 3.6.0 (at: \Documents\R\R-3.6.0) and rtools40 installed (C:\rtools40)
I have updated from R 3.5.2 and installed and then uninstalled rtools35 in the course of following numerous threads here offering solutions.
After downloading packages from CRAN I got various error messages about failure to find \Rtools\mingw_64, however at least pkgbuild::has_build_tools(debug = TRUE) always returned something. Now however,
pkgbuild::has_build_tools(debug = TRUE)
Scanning R CMD config CC…
‘c:/Rtools/mingw_64/bin/gcc’ does not exist
‘C:/rtools40/usr/mingw_64/bin/gcc.exe’ does not exist
Found C:/rtools40 for 4.0
WARNING: Rtools is required to build R packages, but the version of Rtools previously installed in C:/rtools40 has been deleted.
…although g++.exe is in folder: C:\rtools40\mingw64\bin
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
(although I do now have a Makevars.win file, whatever that is, in Documents.R with contents:
CXX14=(BINPREF)g++ CXX14FLAGS=-O3 -march=native -mtune=native CXX11FLAGS=-O3 -march=native -mtune=native CXX14FLAGS=-O3 -march=corei7 -mtune=corei7 CXX14 = (BINPREF)g++ -m$(WIN) -std=c++1y
CXX11FLAGS=-O3 -march=corei7 -mtune=corei7
…and adding the line:
CXX = “C:\Rtools40\mingw_64\bin\g++”
…to this doc doesn’t help me.
Probably needless to add that:
Error in loadNamespace(name) : there is no package called ‘devtools’
What a way to spend a Saturday. Just as well I’m in lockdown!