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.7)interface_0.1.3.zip(r-4.6)interface_0.1.3.zip(r-4.5)
interface_0.1.3.tgz(r-4.6-any)interface_0.1.3.tgz(r-4.5-any)
interface_0.1.3.tar.gz(r-4.7-any)interface_0.1.3.tar.gz(r-4.6-any)
interface_0.1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
interface/json (API)
| # 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 from:bcce62aec0. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 117 | ||
| source / vignettes | OK | 175 | ||
| linux-release-x86_64 | OK | 136 | ||
| macos-release-arm64 | OK | 146 | ||
| macos-oldrel-arm64 | OK | 170 | ||
| windows-devel | OK | 74 | ||
| windows-release | OK | 70 | ||
| windows-oldrel | OK | 69 | ||
| wasm-release | OK | 95 |
Exports:enumfuninterfacetype.frame
Dependencies:
Last update: 2024-07-29
Started: 2024-07-28
Last update: 2024-07-27
Started: 2024-07-27
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 |
