optional_nonneg_integer_scalar: Optional non-negative integer scalar S7 property

optional_nonneg_integer_scalarR Documentation

Optional non-negative integer scalar S7 property

Description

S7 property accepting NULL or a single non-NA integer value greater than or equal to zero.

Usage

optional_nonneg_integer_scalar

Value

An S7 property object.

Author(s)

EDG

Examples

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

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