Description Usage Arguments Value Note Examples
A version of deparse
that is guaranteed to always return
a single string.
1 | safe_deparse(expr, ...)
|
expr |
Any R expression. |
... |
Passed to |
A character vector or length one.
By default the RStudio IDE truncates output in the console at 1000
characters. Consequently, if you use safe_deparse
on large or complex
objects, you won't see the full value. You can change the setting using
Tools -> "Global Options..." -> Code -> Display -> Console -> "Limit length
of lines displayed in console to:".
1 2 3 4 | # safe_deparse only differs from deparse when the deparse string is longer
# than width.cutoff
deparse(CO2, width.cutoff = 500L) # has length 6
safe_deparse(CO2) # has length 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.