check_beast2_options: Check if the 'beast2_options' is a valid BEAST2 options...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/check_beast2_options.R

Description

Calls stop if the BEAST2 option object is invalid

Usage

1
check_beast2_options(beast2_options)

Arguments

beast2_options

a set of BEAST2 options, that are the R equivalent of the BEAST2 command-line options, as can be created by create_beast2_options

Value

nothing

Author(s)

Richèl J.C. Bilderbeek

See Also

Use create_beast2_options to create a valid BEAST2 options object

Examples

1
2
3
4
5
6
7
8
 library(testthat)

 expect_silent(check_beast2_options(create_beast2_options()))

 # Must stop on nonsense
 expect_error(check_beast2_options(beast2_options = "nonsense"))
 expect_error(check_beast2_options(beast2_options = NULL))
 expect_error(check_beast2_options(beast2_options = NA))

richelbilderbeek/beastier documentation built on Dec. 4, 2019, 9:13 p.m.