lapply_parallel: Run lapply on multiple cores with mclapply

Description Usage Arguments Value

View source: R/parallel.r

Description

Run lapply on multiple cores with mclapply

Usage

1
lapply_parallel(X, FUN, ..., mc.cores = NULL)

Arguments

X

Argument to FUN to iterate over

FUN

Function to apply

...

Other arguments passed to FUN

mc.cores

Number of cores to use. (Default of NULL tries to guess.)

Value

The result, as if passed to lapply()

Like parallel::mclapply, but with easier core detection (see get_cores and mostly works on Windows. See https://github.com/nathanvan/parallelsugar


karldw/kdw.junk documentation built on Dec. 24, 2018, 1:07 a.m.