limitDataTableCores | R Documentation |
Set threads for data.table respecting possible local settings
limitDataTableCores(ncores, verbose = FALSE)
ncores |
A numeric or character variable with the desired count of threads to use |
verbose |
A logical value with a default of ‘FALSE’ to operate more verbosely |
This function set the number of threads data.table will use while reflecting two possible machine-specific settings from the environment variable ‘OMP_THREAD_LIMIT’ as well as the R option ‘Ncpus’ (uses e.g. for parallel builds).
The return value of the data.table function
setDTthreads
which is called as a side-effect.
Dirk Eddelbuettel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.