This package is considered a duplicate. The official version of this package is found at:https://dereckmezquita.r-universe.dev/interface
Package: interface 0.1.2
interface: Runtime Type System
Provides a runtime type system, allowing users to define and implement interfaces, enums, typed data.frame/data.table, as well as typed functions. This package enables stricter type checking and validation, improving code structure, robustness and reliability.
Authors:
interface_0.1.2.tar.gz
interface_0.1.2.tar.gz(r-4.5-noble)interface_0.1.2.tar.gz(r-4.4-noble)
interface_0.1.2.tgz(r-4.4-emscripten)interface_0.1.2.tgz(r-4.3-emscripten)
interface.pdf |interface.html✨
interface/json (API)
NEWS
# Install 'interface' in R: |
install.packages('interface', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dereckmezquita/interface/issues
Last updated 4 months agofrom:7414e79655. Checks:2 OK. Indexed: no.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Jan 09 2025 |
R-4.5-linux | OK | Jan 09 2025 |
Exports:enumfuninterfacetype.frame
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Modify a typed data frame using [ ] | [<-.typed_frame |
Equality comparison for enum objects | ==.enum |
Get value from enum object | $.enum |
Get a property from an interface object | $.interface_object |
Set value of enum object | $<-.enum |
Set a property in an interface object | $<-.interface_object |
Modify a typed data frame using $ | $<-.typed_frame |
Create an enumerated type | enum |
Create a typed function | fun |
Handle violations based on the specified action | handle_violation |
Define an interface | interface |
Print method for enum objects | print.enum |
Print method for enum generators | print.enum_generator |
Print method for interface objects | print.interface_object |
Print method for typed data frames | print.typed_frame |
Print method for typed functions | print.typed_function |
Combine typed data frames row-wise | rbind.typed_frame |
Create a typed data frame | type.frame |
Validate a property against a given type or validation function | validate_property |
Modify a user-defined function to return a single logical value | wrap_fun_in_all |