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

CreateParallelWorkers(nCores, ...)

Arguments

nCores

The number of computing cores to make available for coMethDMR computation

...

Additional arguments passed to the cluster constructors.

Value

A parameter class for use in parallel evaluation

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.

Examples

   workers_cl <- CreateParallelWorkers(nCores = 4)