lapply_func: Choose a parallel or sequential apply function

lapply_funcR Documentation

Choose a parallel or sequential apply function

Description

Internal function that chooses an appropriate "apply"-type function (either lapply() or future.apply::future_lapply())

Usage

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".

Value

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


EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.