Skip to contents

[Stable]

This function returns a list of a function's arguments and their values, including the default values

Usage

match_call()

References

https://stackoverflow.com/questions/14397364/match-call-with-default-arguments

Examples

f = function(x = 1, y = 2) match_call()
f(x = 3)
#> $x
#> [1] 3
#> 
#> $y
#> [1] 2
#> 
f = function(x = 1, y = 2, ...) match_call()
f(x = 3, dots = 13)
#> $x
#> [1] 3
#> 
#> $dots
#> [1] 13
#> 
#> $y
#> [1] 2
#>