I’m a beginner and was trying to fit use Rstan to fit some data following this project on Github: GitHub - dsmaynard/endpoints: Data and code for "Predicting coexistence in experimental ecological communities"
When I tried to use fit_stan to analyze the data, an error similar to Error in model fit: C++14 standard requested but CXX14 is not defined · Issue #569 · stan-dev/rstan · GitHub came out and saying CXX14 is not defined, I tried the suggestions and created the Makevars file. However now when I want to use fit_stan, the error become like this:
stan_results ← fit_stan(dt, stan_file = “Stan_file.stan”, chains = 2, cores = 2, iter = 15000, warmup = 7500, thin = 15)
[1] “fitting all endpoints”
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! sh: C:/Program: No such file or directory
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/x64/Makeconf:215: file26104b4d24a6.o] Error 127
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command ‘C:/PROGRA~1/R/R-36~1.1/bin/x64/R CMD SHLIB file26104b4d24a6.cpp 2> file26104b4d24a6.cpp.err.txt’ had status 1
Error in sink(type = “output”) : invalid connection
Hope someone can see this and help me. Thanks a lot in advance!