wrapper_funcs.RdA dummy function for demo of wrapper function with
... arguments. This function multiplies two numeric values / vectors.
wrapper_funcs(some_arg = 1, ...)
| some_arg | (numeric) a single numeric value or vector,
needs to be compatible with the other argument |
|---|---|
| ... | named argument value pairs to be passed to |
a numeric vector as a result of some arithmetics using inputs. Its dimension is determined according to basting rules.
# specifiy all keyword arguments wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4, b = 5)#> [1] 16# specify some (but not all) keyword arguments wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4)#> [1] 4# only keyword arguments are passed to underlying functions wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4, 5)#> [1] 4# unrecognized keyword arguments will be ignored wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4, d = 5)#> [1] 4