Learn R Programming

geneSignatureFinder (version 2014.02.17)

NCPUS: Wrapper function to both makeCluster() and detecCore() functions of the 'parallel' library.

Description

The function set up a cluster of 'nchips' cpu's on the local host.

Usage

NCPUS(nchips = FALSE)

Arguments

nchips
is the number of cpu's on the local pc

Value

cluster of cpu's.

Details

The use of this function is depreceted. Use makeCluster() instead. The function is here for compatibility with the version 2013.08.20 of the library.

See Also

makeCluster, detectCores

Examples

Run this code
# to count how many cpu's are on the localhost, run
detectCores()

# we suggest to set a cluster of maximal dimension -1 to leave a cpu to control the system
aMakeCluster <- makeCluster(2)
stopCluster(aMakeCluster)


Run the code above in your browser using DataLab