Package: interface 0.1.3
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.3.tar.gz
interface_0.1.3.zip(r-4.5)interface_0.1.3.zip(r-4.4)interface_0.1.3.zip(r-4.3)
interface_0.1.3.tgz(r-4.4-any)interface_0.1.3.tgz(r-4.3-any)
interface_0.1.3.tar.gz(r-4.5-noble)interface_0.1.3.tar.gz(r-4.4-noble)
interface_0.1.3.tgz(r-4.4-emscripten)interface_0.1.3.tgz(r-4.3-emscripten)
interface.pdf |interface.html✨
interface/json (API)
NEWS
# Install 'interface' in R: |
install.packages('interface', repos = c('https://dereckmezquita.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dereckmezquita/interface/issues
data-validationinterfacepackagestypes
Last updated 2 months agofrom:bcce62aec0. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 12 2024 |
R-4.5-win | OK | Nov 12 2024 |
R-4.5-linux | OK | Nov 12 2024 |
R-4.4-win | OK | Nov 12 2024 |
R-4.4-mac | OK | Nov 12 2024 |
R-4.3-win | OK | Nov 12 2024 |
R-4.3-mac | OK | Nov 12 2024 |
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 |