Examples for 'rlang::call_match'


Match supplied arguments to function definition

Aliases: call_match

Keywords:

### ** Examples

# `call_match()` supports matching missing arguments to their
# defaults
fn <- function(x = "default") fn
call_match(quote(fn()), fn)
fn()
call_match(quote(fn()), fn, defaults = TRUE)
fn(x = "default")

[Package rlang version 1.1.4 Index]