R/parallel.R

Defines functions check.parallel

check.parallel<-function(parallel=TRUE) {
    if(parallel) {
        if (requireNamespace("snowfall", quietly = TRUE)) {
            if(!snowfall::sfIsRunning()) stop("You must call sfInit first")
        } else {
            stop("Package snowfall must be installed.")
        }
    }
}

Try the HiDimMaxStable package in your browser

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

HiDimMaxStable documentation built on May 29, 2017, 6:20 p.m.