| nonneg_integer_scalar | R Documentation |
S7 property accepting a single non-NA integer value greater than or equal to zero,
i.e. in [0, \infty) (e.g. 0L, 1L).
nonneg_integer_scalar
An S7 property object.
EDG
Counter <- S7::new_class(
"Counter",
properties = list(n_failed = nonneg_integer_scalar)
)
Counter(n_failed = 0L)@n_failed
try(Counter(n_failed = -1L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.