Package: precondition 0.1.0

precondition: Lightweight Precondition, Postcondition, and Sanity Checks

Implements fast, safe, and customizable assertions routines, which can be used in place of `base::stopifnot()`.

Authors:Taras Zakharko [aut, cre]

precondition_0.1.0.tar.gz
precondition_0.1.0.zip(r-4.5)precondition_0.1.0.zip(r-4.4)precondition_0.1.0.zip(r-4.3)
precondition_0.1.0.tgz(r-4.4-x86_64)precondition_0.1.0.tgz(r-4.4-arm64)precondition_0.1.0.tgz(r-4.3-x86_64)precondition_0.1.0.tgz(r-4.3-arm64)
precondition_0.1.0.tar.gz(r-4.5-noble)precondition_0.1.0.tar.gz(r-4.4-noble)
precondition_0.1.0.tgz(r-4.4-emscripten)precondition_0.1.0.tgz(r-4.3-emscripten)
precondition.pdf |precondition.html
precondition/json (API)
NEWS

# Install 'precondition' in R:
install.packages('precondition', repos = c('https://tzakharko.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/tzakharko/precondition/issues

On CRAN:

3.74 score 11 stars 1 scripts 149 downloads 7 exports 1 dependencies

Last updated 2 years agofrom:670e0fa58d. Checks:OK: 4 NOTE: 5. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 07 2024
R-4.5-win-x86_64NOTENov 07 2024
R-4.5-linux-x86_64NOTENov 07 2024
R-4.4-win-x86_64NOTENov 07 2024
R-4.4-mac-x86_64NOTENov 07 2024
R-4.4-mac-aarch64NOTENov 07 2024
R-4.3-win-x86_64OKNov 07 2024
R-4.3-mac-x86_64OKNov 07 2024
R-4.3-mac-aarch64OKNov 07 2024

Exports:diagnose_assertion_failurediagnose_expressionsfatal_errorforwarded_arg_labelpostconditionpreconditionsanity_check

Dependencies:rlang

Readme and manuals

Help Manual

Help pageTopics
Implement a custom assertiondiagnose_assertion_failure forwarded_arg_label
Diagnose expressions and substitute debug markersdebug-markers diagnose_expressions
Signal a fatal error (and optionally terminate the program execution)fatal_error precondition_fatal_error_action
Pre- and postcondition checking (assertions)postcondition precondition sanity_check