As far as I can reproduce it’s a linux-specific issue. I don’t know the exact cause yet, but a workaround appears to be compiling your cmdstan models with STAN_THREADS=true
:
cmdstan_make_local(cpp_options = list(STAN_THREADS = TRUE))
rebuild_cmdstan()