View source: R/fixes_for_builtins.R
deparse_onestring | R Documentation |
This is like the base R deparse()
, except that it always returns
a single string, rather than a character vector of lines of text.
deparse_onestring(...)
... |
See |
A character vector of length 1.
Note that depending on the different deparse options, the resulting string may still not be a complete R expression that recreates the original object. Also note that the returned string may contain newlines.
# Make an object whose representation spans multiple lines x <- seq(100)[-50] length(deparse(x)) length(deparse_onestring(x)) identical(x, eval(parse(text=deparse_onestring(x))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.