assert_number_between: Confirm that a value is greater than another value

View source: R/assertions.R

assert_number_betweenR 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


PKNCA documentation built on June 22, 2024, 9:25 a.m.