rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
and when I do that and start my model - after a short while I get the announcement that
#Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) :
# no valid constructor available for the argument list
#trying deprecated constructor; please alert package maintainer
and the model exits
When I start all over again but omitting these two calls to options and cores, the model runs OK but slowly.
I did not follow the suggestion to have makevars and the other optional stuff under “configuration” - so I did not make any error there :-)
post <- stan_gamm4(y ~ s(roach1) + treatment + log(roaches$exposure2),
random = ~(1 | senior),
data = roaches, family = neg_binomial_2, QR = TRUE,
chains = 10, cores = 10, seed = 1234)
Error in new_CppObject_xp(fields$.module, fields$.pointer, …) :
no valid constructor available for the argument list
trying deprecated constructor; please alert package maintainer
But now, even without the
rstan_options(auto_write=TRUE)
options(mc.cores=parallel::detectCores()) the same error occurs but the
program runs OK but slowly - avoiding the two said lines and avoiding
cores and chains doesn’t take the error away.
But, running the shools8 example with the lines included and also
rstanarm called runs without eliciting the message about calling the
maintainer:-)
Okay, if it is executing then don’t worry about the message that says trying deprecated constructor; please alert package maintainer. That is known to not be a problem.