I am having trouble getting rstan to function on a windows 10 machine. I have followed all instructions found on https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows. I installed R 3.4.3, Rstudio 1.1.423, and Rtools33 first and then followed the steps in the link. Rtools comes up fine in the path.
When I try (as recommended in the link):
fx <- inline::cxxfunction( signature(x = "integer", y = "numeric" ) , ' return ScalarReal( INTEGER(x) * REAL(y) ) ; ' ) fx( 2L, 5 ) # should be 10
I get the following error:
Error in system(cmd, intern = !verbose) : 'C:/Program' not found
I found and followed a very similar thread on this forum that talked about adding quotation marks around whatever is assigned to CXXFLAGS in the Makevars file. This made no difference so I changed it back to no quotation marks.
Note my makevars file contains the following line:
CXXFLAGS=-O3 -Wno-unused-variable -Wno-unused-function
I have tried uninstalling R, Rstudio, Rtools and reinstalling them and following the steps again and no change in the problems. I have followed the exact same process on a different windows 10 machine and had no issues, just the computer I need to use at work is giving me this trouble.
If I try to use any rstan function, I get the
Error in system(cmd, intern = !verbose) : 'C:/Program' not found.
Any ideas on what I am missing? What other info can I provide to help diagnose this?