lapply_func function

Choose a parallel or sequential apply function

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())

Arguments

  • ...: Additional parameters to pass to underlying option functions, stan_sampling_opts() or stan_vb_opts(), depending on the method
  • backend: Character string indicating the backend to use for fitting stan models. Supported arguments are "rstan" (default) or "cmdstanr".

Returns

A function that can be used to apply a function to a list