I’ve been slowly and mostly happily switching from RStan to CmdStanR, but I just noticed a weird behavior:
I compile a model, succesfully sample, then, after restarting the R sesion,
cmdstan_model happily reports
Model executable is up to date!
model$sample() gives me
Chain 1 finished unexpectedly! Chain 2 finished unexpectedly! Chain 3 finished unexpectedly! Chain 4 finished unexpectedly! All chains finished unexpectedly!
I see that the model process gets started, but then terminates immediately.
If I delete the .exe file and recompile, everything works fine until I restart R. Then no sampling once again.
I am on Windows 10. I tried adding the folder containing the model .exe file as an exception into Windows Defender, but to no avail. Any further hints where to look at?