r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
502 stars 140 forks source link

Add argument `args` to `check_function()` #1652

Open mgirlich opened 1 year ago

mgirlich commented 1 year ago

When taking a function as an argument the number or the name of the arguments are usually also important (e.g. see https://github.com/r-lib/httr2/pull/279 where this is useful).

This uses format_arg() from the standalone-cli.R file. Not sure if you want to add the dependency on this file as well or prefer a workaround.