% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MCIS_helpers.R
\name{make_ready_cluster}
\alias{make_ready_cluster}
\title{Prepare parallel cluster environment for MC Importance Sampling}
\usage{
make_ready_cluster(
  use_threads,
  libPaths_local,
  seed = NULL,
  export_objs = character(0),
  debug.level = 0
)
}
\arguments{
\item{use_threads}{Number of worker cores/threads to create via \link[parallel]{makeCluster}.}

\item{libPaths_local}{Library paths propagated to each worker via `.libPaths()`.}

\item{seed}{Integer base seed used for reproducible random numbers across workers.}

\item{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.
}
\description{
Creates an R parallel cluster with specified number of workers,
exports required objects/functions and initializes reproducible RNG streams on each worker.
}
\keyword{internal}
