R/utils.R

Defines functions MClapply

#
#  Copyright (C) 2005-2008 Friedrich Leisch

MClapply <- function(X, FUN, multicore=TRUE, ...)
{
    if(inherits(multicore, "cluster"))
        parLapply(multicore, X, FUN)
    else if(multicore)
        mclapply(X, FUN, ...)
    else
        lapply(X, FUN, ...)
}

Try the ockc package in your browser

Any scripts or data that you put into this service are public.

ockc documentation built on Dec. 28, 2022, 2:18 a.m.