R/check_mark.R

Defines functions enod done bullet cat_line

# from usethis https://github.com/r-lib/usethis
cat_line <- function(...) {
  cat(..., "\n", sep = "")
}

bullet <- function(lines, bullet) {
  lines <- paste0(bullet, " ", lines)
  cat_line(lines)
}

done <- function(...) {
  bullet(paste0(...), bullet = crayon::green(clisymbols::symbol$tick))
}
enod <- function(...) {
  bullet(paste0(...), bullet = crayon::red(clisymbols::symbol$warning))
}
ThinkRstat/fcuk documentation built on Oct. 15, 2023, 10:01 p.m.