R/check_is_monophyletic.R

Defines functions check_is_monophyletic

Documented in check_is_monophyletic

#' Check if \code{is_monophyletic} has a valid value.
#'
#' Will \link{stop} if not.
#' @inheritParams default_params_doc
#' @return No return value, called for side effects
#' @export
check_is_monophyletic <- function(is_monophyletic) {
  if (!beautier::is_one_bool(is_monophyletic)) {
    stop("'is_monophyletic' must be either TRUE or FALSE")
  }
  invisible(is_monophyletic)
}
ropensci/beautier documentation built on July 9, 2024, 6:14 a.m.