I am trying to install Rstan on a windows data science virtual machine on azure to increase the computation times of my bayesian analysis. I followed the github tutorial on how to install rstan again but I am running into some problems.
When I run the school examples using"
fit <- stan(model_code = eightschools,
data = schools_dat, iter = 10000, warmup = 100, chains = 4)
I get the following error:
Error in system(cmd, intern = !verbose) :
'C:/PROGRA~1/Microsoft/ML' not found
Error in sink(type = "output") : invalid connection
I searched the entire internet but I don’t know how to fix it. When I test using:
fx <- inline::cxxfunction( signature(x = “integer”, y = “numeric” ) , ‘
return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
’ )
fx( 2L, 5 ) # should be 10
I get the error:
Error in system(cmd, intern = !verbose) :
'C:/PROGRA~1/Microsoft/ML' not found
I did however note that I don’t have a MakeVars file in any directory on my virtual machine and executing the following command (from Newbie installation problem)
file.path(Sys.getenv("HOME"), ".R", "Makevars")
results in a directory on my local pc and not on my virtual machine. Does anyone know how to solve these errors and to get stan to work on my virtual machine? Many thanks in advance!!!
This returns me the following error and warning messages:
Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: running command 'C:/PROGRA~1/Microsoft/ML Server/R_SERVER/bin/x64/R CMD SHLIB file1618443fdf1.cpp 2> file1618443fdf1.cpp.err.txt' had status 127
2: In file(con, "r") :
cannot open file 'file1618443fdf1.cpp.err.txt': No such file or directory