gives_beast2_warning {beastier} | R Documentation |
Determines if BEAST2 issues a warning when using the BEAST2 XML input file
Description
Determines if BEAST2 issues a warning when using the BEAST2 XML input file
Usage
gives_beast2_warning(
filename,
verbose = FALSE,
beast2_path = get_default_beast2_path()
)
Arguments
filename |
name of the BEAST2 XML input file |
verbose |
if TRUE, additional information is displayed, that is potentially useful in debugging |
beast2_path |
name of either a BEAST2 binary file
(usually simply |
Value
TRUE if the file produces a BEAST2 warning, FALSE if not
Author(s)
Richèl J.C. Bilderbeek
See Also
Use is_beast2_input_file
to check if a file is a
valid BEAST2 input file.
Use are_beast2_input_lines
to check if the text (for
example, as loaded from a file) to be valid BEAST2 input.
Examples
if (is_beast2_installed() &&
beautier::is_on_ci() &&
rappdirs::app_dir()$os == "unix") {
# This file is OK for BEAST2, no warning, returns FALSE
gives_beast2_warning(filename = get_beastier_path("2_4.xml"))
# BEAST2 will give a warning on this file, returns TRUE
gives_beast2_warning(
filename = get_beastier_path("beast2_warning.xml")
)
}
[Package beastier version 2.5.1 Index]