setup_parallel_backend: Set up a parallel backend with graceful fallbacks.

View source: R/utils.R

setup_parallel_backendR Documentation

Set up a parallel backend with graceful fallbacks.

Description

Attempts to create a parallel cluster, first trying the efficient FORK method (on Unix-like systems), then falling back to PSOCK, and finally returning NULL if all attempts fail.

Usage

setup_parallel_backend(num_cores = NULL, verbose = FALSE)

Arguments

num_cores

The number of cores to use. If NULL, it's determined automatically.

verbose

If TRUE, prints messages about the setup process.

Value

A cluster object cl on success, or NULL on failure.


ccar3 documentation built on Sept. 16, 2025, 9:11 a.m.