Skip to contents

Validates that x is a single integer value. NA values are rejected.

Usage

assert_integer_scalar(x, arg = deparse(substitute(x)))

Arguments

x

Value to check

arg

Character string describing the argument (for error messages)

Value

Invisibly returns x if validation passes