Skip to contents

[Stable]

This function builds the cluster and imports the necessary packages to run causewise: causewise itself, dplyr and tidyr.

Usage

build_cluster(parallel_setup)

Arguments

parallel_setup

A string indicating parallel workers set-up. Can be "sequential" or "parallel".

Value

Cluster object that will parallelize operations.

Examples

if (FALSE) { # \dontrun{
# Uses all but one of the machine's cores.
cl <- build_cluster("sequential")
parallel::stopCluster(cl)
} # }