Learn R Programming

beastier (version 2.5)

check_n_threads: Check if the input is a valid number of threads.

Description

Will stop if not.

Usage

check_n_threads(n_threads)

Value

Nothing. Will stop if the number of threads in invalid

Arguments

n_threads

the number of computational threads to use. Use NA to use the BEAST2 default of 1.

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beaustier_folders()

# Can have 1 or more threads
check_n_threads(1)
check_n_threads(2)
# Can have NA threads
check_n_threads(NA)

check_empty_beaustier_folders()

Run the code above in your browser using DataLab