#' @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
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.