check_n_threads {beastier}R 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()

[Package beastier version 2.5.1 Index]