Get the name of a variable in the parent frame
Gets the name of the input in the parent frame.
get_name_in_parent(x, escape_percent = TRUE)
x |
Variable to get the name of. |
escape_percent |
Logical. If |
A string giving the name of the input in the parent frame.
outside <- 1 f <- function(inside, escape_percent) { get_name_in_parent(inside, escape_percent) } f(outside, TRUE) f('10%', TRUE) f('10%', FALSE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.