check_pos_double_scalar: Check positive double scalar

View source: R/check.R

check_pos_double_scalarR Documentation

Check positive double scalar

Description

Check positive double scalar

Usage

check_pos_double_scalar(x, arg_name = deparse(substitute(x)))

Arguments

x

Numeric: Value to check. Must be a single finite number strictly greater than zero.

arg_name

Character: Argument name to use in error messages.

Value

Called for side effects. Throws an error if checks fail.

Author(s)

EDG

Examples

check_pos_double_scalar(0.001)
check_pos_double_scalar(100)
# Throw error:
try(check_pos_double_scalar(0))
try(check_pos_double_scalar(-1))
try(check_pos_double_scalar(Inf))

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.