I tried running the example model
file ← file.path(cmdstan_path(), “examples”, “bernoulli”, “bernoulli.stan”)
mod ← cmdstan_model(file)
And this was what it gave me
Compiling Stan program…
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
‘cscript’ is not recognized as an internal or external command,
operable program or batch file.
‘cscript’ is not recognized as an internal or external command,
operable program or batch file.
…/tbb_2020.3/build/common.inc:81: *** Architecture not detected. Stop.
mingw32-make.exe: *** [stan/lib/stan_math/make/libraries:173: stan/lib/stan_math/lib/tbb/tbbmalloc.def] Error 2
Error: An error occured during compilation! See the message above for more information.