When submit_model() is called with a Stan model, it
collects the arguments from <run>-stanargs.R and passes them to
CmdStanModels $sample() (for
bbi_stan_model objects) or
$generate_quantities() (for
bbi_stan_gq_model objects).
set_stanargs() and get_stanargs() provide an interface for specifying and
inspecting the arguments attached to a model.
set_stanargs(.mod, .stanargs, .clear = FALSE)
# S3 method for class 'bbi_stan_model'
set_stanargs(.mod, .stanargs, .clear = FALSE)
# S3 method for class 'bbi_stan_gq_model'
set_stanargs(.mod, .stanargs, .clear = FALSE)
get_stanargs(.mod)