hasArg2(name)
This function is identical to hasArg
,
except that it accepts the argument name as a character
string. This avoids to have a check NOTE about invisible
binding variable.
f <- function(...){ hasArg2('abc') }f(a=1)[1] FALSEf(abc=1)[1] TRUEf(b=1)[1] FALSE