powered by
Gets the name of the input in the parent frame.
get_name_in_parent(x, escape_percent = TRUE)
Variable to get the name of.
Logical. If TRUE, percent signs are doubled, making the value suitable for use with sprintf (and hence by false and na).
TRUE
sprintf
false
na
A string giving the name of the input in the parent frame.
# NOT RUN { outside <- 1 f <- function(inside, escape_percent) { get_name_in_parent(inside, escape_percent) } f(outside, TRUE) f('10%', TRUE) f('10%', FALSE) # }
Run the code above in your browser using DataLab