is.parallel: Is parallel?

Description Usage Value See Also Examples

Description

This function determines if parallel processing capabilities have been initialized.

Usage

1

Value

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

See Also

set_number_of_threads, get_number_of_threads.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# set number of threads to 2
set_number_of_threads(2)
# get number of threads
get_number_of_threads()

# check that parallel processing is active
is.parallel()

# reset number of threads to 1
set_number_of_threads(1)

# check that parallel processing has been deactivated
is.parallel()

prioritizr/prioritizrutils documentation built on May 25, 2019, 12:20 p.m.