setup_future | R Documentation |
A utility function that aims to streamline the set up
of the required future backend with sensible defaults for most users of
regional_epinow()
. More advanced users are recommended to setup their own
{future}
backend based on their available resources. Running this requires
the {future}
package to be installed.
setup_future(
data,
strategies = c("multisession", "multisession"),
min_cores_per_worker = 4
)
data |
A |
strategies |
A vector length 1 to 2 of strategies to pass to
|
min_cores_per_worker |
Numeric, the minimum number of cores per worker. Defaults to 4 which assumes 4 MCMC chains are in use per region. |
Numeric number of cores to use per worker. If greater than 1 pass to
stan_args = list(cores = "output from setup future")
or use
future = TRUE
. If only a single strategy is used then nothing is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.