Learn R Programming

SPOT (version 2.11.10)

doParallel: Parallel execution of code, dependent on the operating system

Description

mclapply is only supported on linux and macOS. On Windows parlapply should be used. This function switches between both dependent on the operating system of the user.

Usage

doParallel(X, FUN, nCores = 2, ...)

Arguments

X

vector with arguments to parallelize over

FUN

function that shall be applied to each element of X

nCores

integer. Defines the number of cores.

...

optional arguments to FUN