check_nb_cores: Check the number of selected CPU cores

Description Usage Arguments Value

View source: R/arg_checks.R

Description

This function ensures that the user selects a valid number of CPU cores. If the number of cores is invalid, then use the total number of available cores as default.

Usage

1
check_nb_cores(nb_cores)

Arguments

nb_cores

An integer, the number of CPU cores to select

Value

An integer, the number of CPU cores to select


xavierkamp/tsForecastR documentation built on Feb. 1, 2020, 10:16 a.m.