View source: R/mc_is_helpers.R
| make_ready_cluster | R Documentation |
Creates an R parallel cluster with specified number of workers, exports required objects/functions and initializes reproducible RNG streams on each worker.
make_ready_cluster(
use_threads,
libPaths_local,
seed = NULL,
export_objs = character(0),
debug.level = 0
)
use_threads |
Number of worker cores/threads to create via makeCluster. |
libPaths_local |
Library paths propagated to each worker via '.libPaths()'. |
seed |
Integer base seed used for reproducible random numbers across workers. |
export_objs |
Character vector naming objects/functions that should be exported from parent environment. |
Ready-to-use parallel cluster object configured with correct libraries and RNG streams.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.