Get the name of a variable defined in the parent frame

getNameInParent(x, escapePercent = TRUE)

vname(x, escapePercent = TRUE)

Arguments

x

symbol. Variable to get the name of.

escapePercent

logical(1). If TRUE, percent signs are doubled, making the value suitable for use with sprintf().

Value

character(1).

See also

Examples

getNameInParent(test)
#> [1] "test"