assert_number_between {PKNCA}R Documentation

Confirm that a value is greater than another value

Description

Confirm that a value is greater than another value

Usage

assert_number_between(
  x,
  ...,
  na.ok = FALSE,
  len = 1,
  .var.name = checkmate::vname(x)
)

Arguments

x

[any]
Object to check.

...

Passed to assert_numeric_between()

na.ok

[logical(1)]
Are missing values allowed? Default is FALSE.

len

Ignored (must be 1)

.var.name

[character(1)]
Name of the checked object to print in assertions. Defaults to the heuristic implemented in vname.

Value

x or an informative error


[Package PKNCA version 0.11.0 Index]