R/utils.R

Defines functions cat_line

#' @importFrom crayon silver green cyan magenta red bold
NULL

# crayon
cry_code <- silver
cry_done <- green
cry_note <- cyan
cry_warn <- magenta
cry_err <- red

# Adapted from cli::cat_line
cat_line <- function(...) {
  out <- paste0(..., collapse = "\n")
  cat(out, "\n", sep = "", append = TRUE)
}
maurolepore/fgeo.install documentation built on Dec. 21, 2021, 3:50 p.m.