Match a functions arguments.
Details
Match a functions arguments, the bad ones passed will be rejected but the remaining passing ones will be returned.
See also
Other Utility:
check_duplicate_rows(),
core_packages(),
create_splits(),
create_workflow_set(),
fast_classification_parsnip_spec_tbl(),
fast_regression_parsnip_spec_tbl(),
full_internal_make_wflw(),
install_deps(),
load_deps(),
quantile_normalize()
Examples
match_args(
  f = "linear_reg",
  args = list(
    mode = "regression",
    engine = "lm",
    trees = 1,
    mtry = 1
   )
 )
#> bad arguments passed: trees
#> bad arguments passed: mtry
#> $mode
#> [1] "regression"
#> 
#> $engine
#> [1] "lm"
#> 
