has_args {assertthat} | R Documentation |
Check a function has specified arguments
has_args(f, args, exact = FALSE) f %has_args% args
f |
a function |
args |
a character vector of argument names |
exact |
if |
has_args(mean, "x") has_args(mean, "x", exact = TRUE) see_if(mean %has_args% "x") see_if(mean %has_args% "y")