File: bpworkers-methods.R

package info (click to toggle)
r-bioc-biocparallel 1.40.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,768 kB
  • sloc: cpp: 139; sh: 14; makefile: 8
file content (13 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
setMethod("bpworkers", "missing",
    function(x)
{
    x <- registered()[[1]]
    bpworkers(x)
})

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