Learn R Programming

Delaporte (version 8.4.1)

setDelapThreads: Set or get the number of OpenMP threads Delaporte should use

Description

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

Usage

setDelapThreads(n)
getDelapThreads()

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