| write_text_fallback | R Documentation |
Writes text to path as UTF-8. If the write raises an encoding error
(for example a destination or locale that cannot represent the
characters), it retries with an ASCII transliteration produced by
to_ascii() so capsule generation never fails on a non-ASCII name.
write_text_fallback(text, path)
text |
A character vector of lines to write. |
path |
Destination file path. |
Invisibly, path.
p <- write_text_fallback(c("line one", "line two"),
tempfile(fileext = ".txt"))
readLines(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.