Examples for 'rlang::check_dots_unnamed'


Check that all dots are unnamed

Aliases: check_dots_unnamed

Keywords:

### ** Examples

f <- function(..., foofy = 8) {
  check_dots_unnamed()
  c(...)
}

f(1, 2, 3, foofy = 4)
[1] 1 2 3
try(f(1, 2, 3, foof = 4))
Error in f(1, 2, 3, foof = 4) : 
  Arguments in `...` must be passed by position, not name.
✖ Problematic argument:
• foof = 4

[Package rlang version 1.1.4 Index]