Package: contractr 0.0.0.9000
contractr: Run-Time Type Contracts for R Functions
Attaches run-time type contracts to R functions. A function is annotated with a type declaration written in the 'tastr' type language; contractr injects assertions that check the arguments and the return value against the declared type on every call, signalling a warning or an error (depending on the configured severity) when a value does not conform.
Authors:
contractr_0.0.0.9000.tar.gz
contractr_0.0.0.9000.tgz(r-4.6-x86_64)contractr_0.0.0.9000.tgz(r-4.6-arm64)contractr_0.0.0.9000.tgz(r-4.5-x86_64)contractr_0.0.0.9000.tgz(r-4.5-arm64)
contractr_0.0.0.9000.tar.gz(r-4.7-arm64)contractr_0.0.0.9000.tar.gz(r-4.7-x86_64)contractr_0.0.0.9000.tar.gz(r-4.6-arm64)contractr_0.0.0.9000.tar.gz(r-4.6-x86_64)
contractr_0.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
contractr/json (API)
| # Install 'contractr' in R: |
| install.packages('contractr', repos = c('https://prl-prg.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/prl-prg/contractr/issues
Last updated from:670b4d89c3. Checks:8 WARNING, 2 OK, 3 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | WARNING | 181 | ||
| linux-devel-x86_64 | WARNING | 235 | ||
| source / vignettes | OK | 404 | ||
| linux-release-arm64 | WARNING | 214 | ||
| linux-release-x86_64 | WARNING | 214 | ||
| macos-release-arm64 | WARNING | 116 | ||
| macos-release-x86_64 | WARNING | 495 | ||
| macos-oldrel-arm64 | WARNING | 133 | ||
| macos-oldrel-x86_64 | WARNING | 284 | ||
| windows-devel-x86_64 | FAIL | 64 | ||
| windows-release-x86_64 | FAIL | 62 | ||
| windows-oldrel-x86_64 | FAIL | 54 | ||
| wasm-release | OK | 205 |
Exports:capture_contractscheck_typeclear_contractscombine_sigsget_autoinjectget_classesget_contractsget_parameter_typeget_severityget_typed_function_namesget_typed_package_nameshas_contractignore_contractsimport_type_declarationsinfer_typeinsert_contractinsert_environment_contractinsert_package_contractis_class_typeis_function_typeis_function_typedis_package_typedis_subtypeis_type_well_formedminimize_list_of_sigsminimize_signatureparse_typeremove_contractset_autoinjectset_severityset_type_declarationshow_function_type_declarationshow_package_type_declarationsshow_type_declarationssig_distancetype_roclet
Dependencies:brewcallrclicommonmarkcpp11descevaluatefsgluehighrinjectrknitrlifecycleotelpkgbuildpkgloadprocessxpsR6rlangroxygen2rprojrootwithrxfunxml2yaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|
