R/bpworkers-methods.R

Defines functions bpnworkers

Documented in bpnworkers

setMethod("bpworkers", "missing",
    function(x)
{
    x <- registered()[[1]]
    bpworkers(x)
})

bpnworkers <- function(x) {
    n <- bpworkers(x)
    if (!is.numeric(n))
        n <- length(n)
    n
}

Try the BiocParallel package in your browser

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

BiocParallel documentation built on Nov. 8, 2020, 5:46 p.m.