R/Colorizer.R

Defines functions Colorizer

Colorizer <- function() {

  colorizeText <- function(colorFunction_f_1 = crayon::blue) {
    function(text_s) {
      unlist(lapply(text_s, colorFunction_f_1))
    }
  }

  l <- lapply(list(crayon::red, crayon::yellow, crayon::green,
                   crayon::blue, crayon::magenta), colorizeText)
  names(l) <- c('error', 'warning', 'message', 'info', 'other')
  l
}

Try the wyz.code.rdoc package in your browser

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

wyz.code.rdoc documentation built on Oct. 6, 2021, 9:07 a.m.