Skip to contents

These functions check whether a value was specified as an argument to a function.

Usage

check_missing(x)

assert_missing(x)

test_missing(x)

Arguments

x

[any]
A formal argument.

Value

TODO

Examples

f <- function(x) {
  check_missing(x)
}
f()
#> [1] "Argument needs a value"

g <- function(x) {
  test_missing(x)
}
g()
#> [1] FALSE

h <- function(x) {
  assert_missing(x)
}
if (FALSE) { # \dontrun{
h()
} # }