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

View source: R/check_n_threads.R

check_n_threadsR Documentation

Check if the input is a valid number of threads.

Description

Will stop if not.

Usage

check_n_threads(n_threads)

Arguments

n_threads

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

Value

Nothing. Will stop if the number of threads in invalid

Author(s)

Richèl J.C. Bilderbeek

Examples

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()

richelbilderbeek/beastier documentation built on Nov. 8, 2023, 9:29 p.m.