| integer_scalar | R Documentation |
S7 property accepting a single non-NA integer value (must be integer type, e.g. 1L).
integer_scalar
An S7 property object.
EDG
Params <- S7::new_class("Params", properties = list(seed = integer_scalar))
Params(seed = 42L)@seed
# Doubles are not accepted: the type must be integer
try(Params(seed = 42))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.