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"
  )
}

Try the crayon package in your browser

Any scripts or data that you put into this service are public.

crayon documentation built on June 22, 2024, 9:39 a.m.