Learn R Programming

dang (version 0.0.16)

limitDataTableCores: Set data.table threads respecting default settingss

Description

Set threads for data.table respecting possible local settings

Usage

limitDataTableCores(ncores, verbose = FALSE)

Value

The return value of the data.table function setDTthreads which is called as a side-effect.

Arguments

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

Author

Dirk Eddelbuettel

Details

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).