Hello,
I'm unclear on the best way to make parallel processing available to users of the package. Right now I have a function which manipulates data, creates variables for Stan and calls sampling(). When working directly with Stan code, prior to calling the sampling function, I would usually use
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
This doesn't seem to work inside of a package.
Are there any guidelines for using parallel processing in conjunction with pre-compiled Stan models?
Thanks,
Jonathon