View source: R/special_characters.R
rx_line_break | R Documentation |
This expression looks for line breaks, both Unix and Windows style by using the appropriate non printable characters.
rx_line_break(.data = NULL)
.data |
Expression to append, typically pulled from the pipe |
Unix style: https://codepoints.net/U+000A
Windows style: https://codepoints.net/U+000D
Non printable character: https://www.regular-expressions.info/nonprint.html
rx_line_break()
# create an expression
x <- rx_line_break()
# create input
string <- "foo\nbar"
# extract match
regmatches(string, regexpr(x, string))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.