Running Windows 10, Rstudio1.4.1106, R-4.0.5, rstan 2.21.2
I’ve upgraded Rtools following instruction. Successfully built jsonlite package from source and installed RStan and read through the forums but can’t seem to get it going.
When I run:
example(stan_model, package = "rstan", run.dontrun = TRUE)
I get the following error:
make: *** [C:/PROGRA~1/R/R-40~1.5/etc/x64/Makeconf:229: file9482c08450c.o] Error 1
Error in file(con, “r”) : cannot open the connection
In addition: Warning messages:
1: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
‘C:/rtools40/usr/mingw_/bin/g++’ not found
2: In file(con, “r”) :
cannot open file ‘file31b84e683026.cpp.err.txt’: No such file or directory
Additional info:
Sys.getenv("BINPREF")
[1] “”
readLines("~/.R/Makevars.win")
[1] “”
[2] " CXX14FLAGS += -mtune=native -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2"
readLines("~/.Rprofile)
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
In file(con, “r”) :
cannot open file ‘C:/Users/Salmo/Documents/.Rprofile’: No such file or directory
readLines("~/.Renviron")
[1] “PATH=” RTOOLS40HOMEusrbin; {PATH}""
Sys.getenv("PATH")
[1] “C:\rtools40\usr\bin;C:\Program Files\R\R-4.0.5\bin\x64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\libnvvp;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Microsoft MPI\Bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Pandoc;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\MATLAB\R2017a\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.5.0;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\Salmo\AppData\Local\Microsoft\WindowsApps;C:\Hugo\bin;C:\Program Files\Microsoft VS Code\bin;C:\Users\Salmo\AppData\Local\GitHubDesktop\bin;C:\Program Files (x86)\Graphviz2.38\bin;C:\Users\Salmo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0;C:\Users\Salmo\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin;C:\Users\Salmo\AppData\Local\Pandoc;C:\Users\Salmo\AppData\Local\atom\bin”