# Let's create some symbols:
foo <- quote(foo)
bar <- sym("bar")
# as_name() converts symbols to strings:
foo
as_name(foo)
typeof(bar)
typeof(as_name(bar))
# as_name() unwraps quosured symbols automatically:
as_name(quo(foo))
Run the code above in your browser using DataLab