check_pos_double_vector: Check positive double vector

View source: R/check.R

check_pos_double_vectorR Documentation

Check positive double vector

Description

Check positive double vector

Usage

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

Arguments

x

Numeric: Value to check. Must be a non-empty vector with all elements finite, strictly greater than zero, and no NAs.

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_vector(c(0.1, 1, 10))
# Throw error:
try(check_pos_double_vector(c(0, 1)))
try(check_pos_double_vector(c(1, Inf)))

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