It is possible that you can take the module loading line out of .onLoad() in zzz.R and not load it until right before you call rstan::sampling.
It is possible that you can take the module loading line out of .onLoad() in zzz.R and not load it until right before you call rstan::sampling.