This function determines if parallel processing capabilities have been initialized.

is.parallel()

Value

logical indicating if parallel computations will be performed in parallel where possible.

See also

Examples

# set number of threads to 2 set_number_of_threads(2) # get number of threads get_number_of_threads()
#> [1] 2
# check that parallel processing is active is.parallel()
#> [1] TRUE
# reset number of threads to 1 set_number_of_threads(1) # check that parallel processing has been deactivated is.parallel()
#> [1] FALSE