View source: R/validation-helpers.R
validateEnumValue | R Documentation |
value
is in the given enum
. If not, stops with an error.Check if value
is in the given enum
. If not, stops with an error.
validateEnumValue(value, enum, nullAllowed = FALSE)
value |
A value to search for in the |
enum |
|
nullAllowed |
If |
Symbol <- enum(c(Diamond = 1, Triangle = 2, Circle = 2)) validateEnumValue(1, Symbol)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.