View source: R/03_S7_properties.R
| enum | R Documentation |
Returns a new_property() for a character scalar constrained to a fixed set of allowed values.
enum(values, default = NULL, nullable = FALSE)
values |
Character: Allowed values. |
default |
Optional Character: Default value. |
nullable |
Logical scalar. If |
An S7 property object.
EDG
type_prop <- enum(c("string", "number", "boolean"), default = "string")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.