Get the name of a variable defined in the parent frame

getNameInParent(x, escapePercent = TRUE, width = 100L)

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().

width

integer(1). Maximum width of the name.

Value

character(1).

Note

Updated 2019-09-06.

See also

Examples

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