R/print.R

Defines functions print.crayon

#' @export
#' @method print crayon

print.crayon <- function(x, ...) {
  st <- paste(names(attr(x, "_styles")), collapse = ", ")
  cat(sep = "",
    "Crayon style function, ",
    st,
    ": ",
    x("example output."),
    "\n"
  )
}
r-pkgs/crayon documentation built on Nov. 9, 2023, 4:33 p.m.