make_ready_cluster: Prepare parallel cluster environment for MC Importance...

View source: R/mc_is_helpers.R

make_ready_clusterR Documentation

Prepare parallel cluster environment for MC Importance Sampling

Description

Creates an R parallel cluster with specified number of workers, exports required objects/functions and initializes reproducible RNG streams on each worker.

Usage

make_ready_cluster(
  use_threads,
  libPaths_local,
  seed = NULL,
  export_objs = character(0),
  debug.level = 0
)

Arguments

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.

Value

Ready-to-use parallel cluster object configured with correct libraries and RNG streams.


TesiproV documentation built on Oct. 28, 2026, 5:13 p.m.