setCepoBPPARAM.Rd
Setting parallel params based on operating platform
setCepoBPPARAM(workers = 1L, ...)
Number of cores to use. Default to 1, which invokes
BiocParallel::SerialParam
.
For workers greater than 1, see the workers
argument in
BiocParallel::MulticoreParam
and BiocParallel::SnowParam
.
Additional arguments passed to BiocParallel::MulticoreParam
and BiocParallel::SnowParam
.
Parameters for parallel computing depending on OS
# system.time(BiocParallel::bplapply(1:3, FUN = function(i){Sys.sleep(i)},
# BPPARAM = setCepoBPPARAM(workers = 1)))
# system.time(BiocParallel::bplapply(1:3, FUN = function(i){Sys.sleep(i)},
# BPPARAM = setCepoBPPARAM(workers = 3)))