check_rng_seed {beastier}R Documentation

Check if the input is a valid RNG seed.

Description

Will stop if not.

Usage

check_rng_seed(rng_seed)

Arguments

rng_seed

the random number generator seed of the BEAST2 run. Must be a non-zero positive integer value or NA. If rng_seed is NA, BEAST2 will pick a random seed

Value

Nothing. Will stop if the RNG seed is invalid

Author(s)

Richèl J.C. Bilderbeek

Examples

check_empty_beaustier_folders()

# Numbers from 1 and higher are valid RNG seeds
check_rng_seed(1)
check_rng_seed(2)
# Also NA is a valid RNG seed
check_rng_seed(NA)

check_empty_beaustier_folders()

[Package beastier version 2.5 Index]