| deparseOpts {base} | R Documentation |
Process the deparsing options for deparse, dput and
dump.
.deparseOpts(control)
control |
character vector of deparsing options. |
This is called by deparse, dput and
dump to process their control argument.
The control argument is a vector containing zero or more of the
following strings. Partial string matching is used.
keepIntegeras.integer(), so they are not
converted to floating point when re-parsed.
quoteExpressionsquote(), so they are not
evaluated when re-parsed.
showAttributessource
attribute), use structure() to display them as well as the
object value. This is the default for deparse and
dput.
useSourcesource attribute, display that instead
of deparsing the object. Currently only applies to function
definitions.
warnIncompletealldump.
delayPromises
For the most readable (but perhaps incomplete) display, use
control = NULL. This displays the object's value, but not its
attributes. The default is to display the attributes as well, but
not to use any of the other options to make the result parseable.
Using control = "all" comes closest to making deparse()
an inverse of parse(). However, not all objects are
deparseable even with this option. A warning will be issued if the
function recognizes that it is being asked to do the impossible.
A numerical value corresponding to the options selected.