setup_cluster: Set up a cluster for parallel computing
Description
The cluster is set up for a number of workers by loading the mcmcsae
package and setting up independent RNG streams.
Usage
setup_cluster(n.cores = NULL, seed = NULL, export = NULL)
Arguments
n.cores
the number of cpu cores to use.
seed
optional random seed for reproducibility.
export
a character vector with names of objects to export to the workers.
Value
an object representing the cluster.