View source: R/escape_non_ascii.R
escape_non_ascii | R Documentation |
I often get code with german umlauts that need to be escaped.
escape_non_ascii(x)
x |
A character vector. |
A character vector.
Other vector functions:
char2factor()
,
file_string()
x <- c("foo", "djörman", "bar", "djörman bar")
escape_non_ascii(x)
# change file
f <- tempfile()
writeLines(x, f)
writeLines(escape_non_ascii(readLines(f)), f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.