Function to run lapply or mclapply, depending on the option set in getOption("mc.cores"), which can be set with setLapplyAlias().

lapplyAlias(..., mc.preschedule = TRUE)

Arguments

...

Arguments passed lapply() or mclapply()

mc.preschedule

Argument passed to mclapply

Value

Result from lapply or parallel::mclapply