One can use deparse(substitute()) combination to extract the parameter name inside the function like this function
deparse(substitute())
names_from_dots <- functio
You can try the following:
names_from_dots <- function(...) sapply(substitute(list(...))[-1], deparse) names_from_dots(swiss, iris) # [1] "swiss" "iris"