powered by
Check if a string has some ANSI styling
has_style(string)
Logical vector, TRUE for the strings that have some ANSI styling.
TRUE
The string to check. It can also be a character vector.
## The second one has style if crayon is enabled has_style("foobar") has_style(red("foobar"))
Run the code above in your browser using DataLab