Examples for 'rlang::as_string'


Cast symbol to string

Aliases: as_string

Keywords:

### ** Examples

# Let's create some symbols:
foo <- quote(foo)
bar <- sym("bar")

# as_string() converts symbols to strings:
foo
foo
as_string(foo)
[1] "foo"
typeof(bar)
[1] "symbol"
typeof(as_string(bar))
[1] "character"

[Package rlang version 1.1.4 Index]