powered by
You can use this function to list all availables crayon styles, via names(styles()), or to explicitly apply an ANSI escape seauence to a string.
names(styles())
styles()
A named list. Each list element is a list of two strings, named ‘open’ and ‘close’.
crayon() for the beginning of the crayon manual.
crayon()
names(styles()) cat(styles()[["bold"]]$close)
Run the code above in your browser using DataLab