R/is_clock_model_name.R

Defines functions is_clock_model_name

Documented in is_clock_model_name

#' Determines if the name is a valid clock model name
#' @param name the name to be tested
#' @return TRUE if the name is a valid clock_model name, FALSE otherwise
#' @examples
#' check_empty_beautier_folder()
#'
#' # TRUE
#' is_clock_model_name("relaxed_log_normal")
#' is_clock_model_name("strict")
#'
#' check_empty_beautier_folder()
#' @author Richèl J.C. Bilderbeek
#' @export
is_clock_model_name <- function(name) {
  name %in% get_clock_model_names()
}

Try the beautier package in your browser

Any scripts or data that you put into this service are public.

beautier documentation built on Nov. 2, 2023, 5:08 p.m.