Examples for 'rlang::check_required'


Check that argument is supplied

Aliases: check_required

Keywords:

### ** Examples

f <- function(x)  {
  check_required(x)
}

# Fails because `x` is not supplied
try(f())
Error in f() : `x` is absent but must be supplied.
# Succeeds
f(NULL)

[Package rlang version 1.1.4 Index]