nonneg_integer_scalar: Non-negative integer scalar S7 property

nonneg_integer_scalarR Documentation

Non-negative integer scalar S7 property

Description

S7 property accepting a single non-NA integer value greater than or equal to zero, i.e. in [0, \infty) (e.g. 0L, 1L).

Usage

nonneg_integer_scalar

Value

An S7 property object.

Author(s)

EDG

Examples

Counter <- S7::new_class(
  "Counter",
  properties = list(n_failed = nonneg_integer_scalar)
)
Counter(n_failed = 0L)@n_failed
try(Counter(n_failed = -1L))

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