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.
doParallel(X, FUN, nCores = 2, ...)
vector with arguments to parallelize over
function that shall be applied to each element of X
integer
. Defines the number of cores.
optional arguments to FUN