R/plapply.R

plapply <- function(X, FUN, ...) {
        if (exists("parLapply") & exists(".GlobalEnv$cl")) {
            o <- parLapply(.GlobalEnv$cl, X, 
                FUN, ...)
        } else {
            o <- lapply(X, FUN, ...)
        }
        o
}
isglobal-brge/CNVassoc documentation built on May 30, 2019, 9:48 p.m.