limitDataTableCores {dang}R Documentation

Set data.table threads respecting default settingss

Description

Set threads for data.table respecting possible local settings

Usage

limitDataTableCores(ncores, verbose = FALSE)

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

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

Value

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

Author(s)

Dirk Eddelbuettel


[Package dang version 0.0.16 Index]