Note: You should now use as_label()
or as_name()
instead
of quo_name()
. See life cycle section below.
These functions take an arbitrary R object, typically an
expression, and represent it as a string.
quo_name()
returns an abbreviated representation of the object
as a single line string. It is suitable for default names.
quo_text()
returns a multiline string. For instance block
expressions like { foo; bar }
are represented on 4 lines (one
for each symbol, and the curly braces on their own lines).
These deparsers are only suitable for creating default names or
printing output at the console. The behaviour of your functions
should not depend on deparsed objects. If you are looking for a way
of transforming symbols to strings, use as_string()
instead of
quo_name()
. Unlike deparsing, the transformation between symbols
and strings is non-lossy and well defined.