Brms keeps recompiling C++ model in every run

Great! So I’m doing the following:

  • Run the script once and save the return object from the brm call to an .RData file
  • Run the script again, but first check if the .RData file exists; if it does, use that for posterior sampling (or update the model first if needed)