Hi,
My model is not compiling. when I run cmdstan_model(), I get the following error
Compiling Stan program…
Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, :
Command ‘mingw32-make.exe’ not found @win/processx.c:994 (processx_exec)
Type .Last.error.trace to see where the error occured
All of my code was working before the weekend.
I can run the example model fine
stan_file ← file.path(cmdstan_path(), “examples”, “bernoulli”, “bernoulli.stan”)
mod ← cmdstan_model(stan_file)
Model executable is up to date!
But it will not work for my own model. I ran the following
cmdstanr::check_cmdstan_toolchain(fix=TRUE)
Error:
RTools 4.0 was not found but is required to run CmdStan with R version 4.x.
Please install RTools 4.0 and run check_cmdstan_toolchain().
I have RTools 4.0 on my computer and have added it successfully to my path via
Sys.setenv(PATH = paste(old_path, “C:\rtools40\usr\bin;”, sep = “”))
Sys.getenv(“PATH”)
But I still get the same error message when I run cmdstan_model().
Any suggestions?