setup_cluster: Set up a cluster for parallel computing

View source: R/parallel.R

setup_clusterR Documentation

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.


mcmcsae documentation built on Oct. 11, 2023, 1:06 a.m.