How obtaining a characters vector containing the name of the dot-dot-dot arguments passed to a function e.g.:
test<-function(x,y,...)
{
varnames=deparseName(substitute(list(...)))
# deparseName does not exist, this is what I want !
# so that I could *for example* call:
for(elt in varnames)
{print(varnames);}
}
v1=11
v2=10
test(12,12,v1,v2)
## would print
#v1
#v2
match.call
– Oylerprint(list(...))
inside the function should do. See https://mcmap.net/q/1474834/-scope-of-dot-dot-dot-arguments – Vampirismprint(names(list(...)))
will do what you want – Vampirismy
but notx
inf(x = 10, y)
. – Hardened