Learn R Programming

Delaporte (version 8.2.0)

getDelapThreads: Set or get number of OpenMP threads Delaporte should use

Description

Set and get number OpenMP threads to be used in Delaporte functions which are parallelized. These include ddelap, pdelap, qdelap, and rdelap.

Usage

getDelapThreads()
setDelapThreads(n)

Value

getDelapThreads returns an integer representing the maximum number of allowed threads.

setDelapThreads invisibly returns the integer passed to it.

Arguments

n

integer: maximum number of threads to be used.

Author

Avraham Adler Avraham.Adler@gmail.com

Details

For systems which return valid values for detectCores, the maximum number of threads will be capped at that value.

See Also

detectCores in parallel package.

Examples

Run this code
getDelapThreads()
setDelapThreads(2L)
getDelapThreads()

Run the code above in your browser using DataLab