Set threads for data.table respecting possible local settings
limitDataTableCores(ncores, verbose = FALSE)
The return value of the data.table function
setDTthreads
which is called as a side-effect.
A numeric or character variable with the desired count of threads to use
A logical value with a default of ‘FALSE’ to operate more verbosely
Dirk Eddelbuettel
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).