Force recompilation

Hi, I would like to get rstan::stan_model() to recompile within an R session. I’ve seen folk refer to this but don’t see any mention of it in stan_model options. What’s the trick?

Background info: if I run a script including compilation under Ubuntu, save.image(), then load the environment on a Mac, the compiled models come with, but they won’t run of course. And it won’t recompile them either.

2 Likes

Maybe @jonah knows?

Presumably using cmdstanr isn’t an option?

It’s certainly an option. It just feels like there should be something in rstan.

1 Like