has_sgr {fansi} | R Documentation |
Check for Presence of Control Sequences
Description
This function is deprecated in favor of the has_ctl
. It
checks for CSI SGR and OSC hyperlink sequences.
Usage
has_sgr(x, warn = getOption("fansi.warn", TRUE))
Arguments
x |
a character vector or object that can be coerced to such. |
warn |
TRUE (default) or FALSE, whether to warn when potentially
problematic Control Sequences are encountered. These could cause the
assumptions |
Value
logical of same length as x
; NA values in x
result in NA values
in return
[Package fansi version 1.0.3 Index]