str_rtl | R Documentation |
Wrap a string with RTL-embedding Unicode characters
str_rtl(..., multiline = FALSE)
... |
One or more character vectors, ideally of length 1. |
multiline |
Whether to split the input strings to separate lines. Defaults to |
A character vector.
# Notice how the `.` prints to the right, while in RTL it should print to the left
cat("a.")
# `str_rtl()` fixes this:
str_rtl("a.") |> cat()
str_rtl("a.", "b.", multiline = TRUE) |> cat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.