Description Details Author(s) See Also
Provides a static enumeration class, a type of stricter list with pretty printing.
The enumr package implements enumerations (or 'enums'). Enums are lists that have unique key/pair values (called 'members'), and cannot be modified after their definition. Enumr was developed in response to a lack of enumerated types in R.
General Resources:
Enumr's enums are heavily inspired by the typescript data structure of the same name. See here for how enums function in typescript
Enumr's pkgdown site
Main exported methods:
making enums: enum()
, as_enum()
, new_generic_enum()
,
new_numeric_enum()
enum class: enum
type checking: Enum()
, is_enum()
printing and presenting enums: print.enum()
, str.enum()
Maintainer: Elian Thiele-Evans elianhte@gmail.com (ORCID) [copyright holder]
Useful links:
Report bugs at https://github.com/ElianHugh/enumr/issues
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.