Closed fkgruber closed 6 years ago
Sorry, I don't think it's possible because it's a limitation in R itself.
Here's an example with an active binding, without R6 (R6's active bindings are made with the makeActiveBinding
function):
makeActiveBinding("x",
function(value) {
print(deparse(substitute(value)))
}, environment()
)
x <- 20
#> [1] "quote(20)"
Hi I wanted to get the construct deparse(substitute(value)) to get the name of the input variable. It works with public functions but not in an active binding. Is there any way to get the name of the variable that is being giving as input to an active binding.
I get: