View source: R/data-structure.R
raw_string | R Documentation |
The function raw_string()
assigns the class xfun_raw_string
to
the character vector, and the corresponding printing function
print.xfun_raw_string()
uses cat(x, sep = '\n')
to write the
character vector to the console, which will suppress the leading indices
(such as [1]
) and double quotes, and it may be easier to read the
characters in the raw form (especially when there are escape sequences).
raw_string(x)
## S3 method for class 'xfun_raw_string'
print(x, ...)
x |
For |
... |
Other arguments (currently ignored). |
library(xfun)
raw_string(head(LETTERS))
raw_string(c("a \"b\"", "hello\tworld!"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.