You want to use alistin your appeal to do.call.
alistprocesses its arguments as if they were describing the arguments of a function. Values ββare not evaluated.
do.call(what="PrintObjectName", args=alist(obj=iris))
# [1] "iris"
or you can use quote
do.call(what="PrintObjectName", args=list(obj=quote(iris)))
source
share