strip_sgr | R Documentation |
This function is deprecated in favor of the strip_ctl
. It
strips CSI SGR and OSC hyperlink sequences.
strip_sgr(x, warn = getOption("fansi.warn", TRUE))
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 |
character vector of same length as x with ANSI escape sequences stripped
## convenience function, same as `strip_ctl(ctl=c('sgr', 'url'))`
string <- "hello\033k\033[45p world\n\033[31mgoodbye\a moon"
strip_sgr(string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.