Nothing
#' Check if the \code{beauti_options} is a valid \code{beauti_options} object.
#'
#' Calls \code{stop} if the \code{beauti_options} object is invalid
#' @inheritParams default_params_doc
#' @return nothing
#' @seealso Use \link{create_beauti_options} to create a valid
#' BEAUti options setup
#' @examples
#' check_empty_beautier_folder()
#'
#' check_beauti_options(create_beauti_options())
#'
#' check_empty_beautier_folder()
#' @author Richèl J.C. Bilderbeek
#' @export
check_beauti_options <- function(
beauti_options
) {
argument_names <- c(
"capitalize_first_char_id",
"nucleotides_uppercase",
"beast2_version",
"required",
"sequence_indent",
"status",
"namespace"
)
for (arg_name in argument_names) {
if (!arg_name %in% names(beauti_options)) {
stop(
"'", arg_name, "' must be an element of an 'beauti_options'. ",
"Tip: use 'create_beauti_options'"
)
}
}
check_bool(beauti_options$capitalize_first_char_id)
check_bool(beauti_options$nucleotides_uppercase)
check_string(beauti_options$beast2_version)
check_string(beauti_options$required)
if (!is_one_int(beauti_options$sequence_indent)) { # nolint beautier function
stop(
"'sequence_indent' must be one number. \n",
"Actual value: ", beauti_options$sequence_indent
)
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.