clapply: Use mclapply conditional on not being in RStudio
Description
Use mclapply conditional on not being in RStudio
Usage
clapply(X, FUN, ..., mc.cores = getOption("mc.cores", 2L))
Arguments
- X
vector
- FUN
function to be applied to the elements of X
- ...
optional arguments passed to FUN
- mc.cores
number of cores to use