powered by
Print Coloured Messages
formatColoured(txt, colour = c("blue", "yellow", "grey"), cat = TRUE)
Character. Text to print or transform.
Character. Any of: grey, red, green, yellow, blue, or purple.
Boolean. Print with cat? If not, raw string
Depends on cat: NULL if TRUE or character string if FALSE.
cat
# NOT RUN { opts <- c("GREY", "RED", "GREEN", "YELLOW", "BLUE", "PURPLE") for (colour in opts) formatColoured(paste("Colour:", colour, "\n"), colour) # }
Run the code above in your browser using DataLab