Depending on whether SetParallel has been called, execute in parallel or not.
psapply(..., seed = NULL, enforce = NA)plapply(..., seed = NULL, enforce = NA)
a vector (psapply) or list (plapply)
forwarded to lapply or parallel::mclapply
Seed for the random number generator
if TRUE, do it parallelized no matter what IsParallel() says, if FALSE do it non-parallelized no matter what IsParallel() says
If the code uses random number specify the seed to make it deterministic