I'd like to get the name of an object that is inputed into a function with another name. Given
new_object = 10
fun1 <- function(fun_input){
...
}
fun1(fun_input = new_object)
The desired output of fun1
should be the string "new_object"
.
I tried deparse
and substitute
as suggested in the solution posted here but I only get "fun_input"
as output.
Thanks