r-lib / rlang

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

Make `check_exclusive()` understand optional arguments #1647

Open hadley opened 1 year ago

hadley commented 1 year ago

e.g. make this just work:

f <- function(x = NULL, y = NULL) {
  rlang::check_exclusive(x, y)
}