setthreads: Set basetable thread count for the session

View source: R/threads.R

setthreadsR Documentation

Set basetable thread count for the session

Description

Controls the default thread count used by basetable's native reader and writer when a verb does not receive n_threads explicitly.

Usage

setthreads(
  threads = NULL,
  restore_after_fork = NULL,
  percent = NULL,
  throttle = NULL
)

Arguments

threads

Integer thread count, or NULL to reread environment settings.

restore_after_fork

Ignored; kept for API compatibility.

percent

Percentage of detected logical CPUs to use.

throttle

Ignored; kept for API compatibility.

Value

The previous thread count.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.