Description Usage Arguments Value See Also Examples
Check if a string has some ANSI styling
1 | ansi_has_any(string)
|
string |
The string to check. It can also be a character vector. |
Logical vector, TRUE
for the strings that have some
ANSI styling.
Other low level ANSI functions:
ansi_hide_cursor()
,
ansi_regex()
,
ansi_strip()
1 2 3 | ## The second one has style if ANSI colors are supported
ansi_has_any("foobar")
ansi_has_any(col_red("foobar"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.