CreateParallelWorkers: Create a Parallel Computing Cluster

View source: R/utils_CreateParallelWorkers.R

CreateParallelWorkersR Documentation

Create a Parallel Computing Cluster

Description

This function is an operating-system agnostic wrapper for the SnowParam and MulticoreParam constructor functions.

Usage

CreateParallelWorkers(nCores, ...)

Arguments

nCores

The number of computing cores to make available for coMethDMR computation

...

Additional arguments passed to the cluster constructors.

Details

This function checks the operating system and then creates a cluster of workers using the SnowParam function for Windows machines and the MulticoreParam function for non-Windows machines.

Value

A parameter class for use in parallel evaluation

Examples

   workers_cl <- CreateParallelWorkers(nCores = 4)
   

TransBioInfoLab/coMethDMR documentation built on Sept. 14, 2022, 7:09 p.m.