Choose a parallel or sequential apply function
Internal function that chooses an appropriate "apply"-type function (either lapply()
or future.apply::future_lapply()
)
lapply_func(..., backend = "rstan", future.opts = list())
...
: Additional parameters to pass to underlying option functions, stan_sampling_opts()
or stan_vb_opts()
, depending on the methodbackend
: Character string indicating the backend to use for fitting stan models. Supported arguments are "rstan" (default) or "cmdstanr".A function that can be used to apply a function to a list
Useful links