| optional_nonneg_integer_scalar | R Documentation |
S7 property accepting NULL or a single non-NA integer value greater than or equal to zero.
optional_nonneg_integer_scalar
An S7 property object.
EDG
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.