R/utils.R

Defines functions cat_red_bullet cat_green_tick

#' @importFrom cli cat_bullet
#' @importFrom utils menu
cat_green_tick <- function(...){
  cli::cat_bullet(
    ..., 
    bullet = "tick", 
    bullet_col = "green"
  )
}

cat_red_bullet <- function(...){
  cli::cat_bullet(
    ..., 
    bullet = "bullet",
    bullet_col = "red"
  )
}

yesno <- function (...) 
{
  cat(paste0(..., collapse = ""))
  menu(c("Yes", "No")) == 1
}
EcoDynIZW/d6 documentation built on June 30, 2024, 2:02 p.m.