are_beast2_input_lines_deep: Would these lines of text, when written to a file, result in...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/are_beast2_input_lines.R

Description

Would these lines of text, when written to a file, result in a valid BEAST2 input file?

Usage

1
2
3
4
5

Arguments

lines

lines of text

verbose

if TRUE, additional information is displayed, that is potentially useful in debugging

beast2_path

name of either a BEAST2 binary file (usually simply beast) or a BEAST2 jar file (usually has a .jar extension). Use get_default_beast2_bin_path to get the default BEAST binary file's path Use get_default_beast2_jar_path to get the default BEAST jar file's path

Value

TRUE if the text is valid, FALSE if not

Author(s)

Richèl J.C. Bilderbeek

See Also

Use is_beast2_input_file to check a file

Examples

1
2
3
4
5
if (is_beast2_installed() && is_on_ci()) {
  beast2_filename <- get_beastier_path("anthus_2_4.xml")
  text <- readLines(beast2_filename)
  are_beast2_input_lines_deep(text)
}

beastier documentation built on Sept. 19, 2021, 5:06 p.m.