R/is_tree_prior_name.R

Defines functions is_tree_prior_name

Documented in is_tree_prior_name

#' Determines if the name is a valid tree prior name
#' @param name the name to be tested
#' @return TRUE if the name is a valid tree_prior name, FALSE otherwise
#' @examples
#' check_empty_beautier_folder()
#'
#' # TRUE
#' is_tree_prior_name("birth_death")
#' is_tree_prior_name("coalescent_bayesian_skyline")
#' is_tree_prior_name("coalescent_constant_population")
#' is_tree_prior_name("coalescent_exp_population")
#' is_tree_prior_name("yule")
#' # FALSE
#' is_tree_prior_name("nonsense")
#'
#' check_empty_beautier_folder()
#' @author Richèl J.C. Bilderbeek
#' @export
is_tree_prior_name <- function(name) {
  name %in% get_tree_prior_names()
}
richelbilderbeek/beautier documentation built on April 4, 2024, 12:33 p.m.