are_beast2_input_lines: 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
6
are_beast2_input_lines(
  lines,
  verbose = FALSE,
  method = ifelse(is_on_ci(), "deep", "fast"),
  beast2_path = get_default_beast2_path()
)

Arguments

lines

lines of text

verbose

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

method

the method to check. Can be 'deep' or 'fast'. The 'deep' method uses BEAST2 to validate the complete file. The 'fast' method uses some superficial tests (for example: if all IDs are unique)

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

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