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.5-x86_64)precondition_0.1.0.tgz(r-4.5-arm64)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'))

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

On CRAN:

Conda:

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

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

TargetResultLatest binary
Doc / VignettesOKMar 07 2025
R-4.5-win-x86_64NOTEMar 07 2025
R-4.5-mac-x86_64NOTEMar 07 2025
R-4.5-mac-aarch64NOTEMar 07 2025
R-4.5-linux-x86_64NOTEMar 07 2025
R-4.4-win-x86_64NOTEMar 07 2025
R-4.4-mac-x86_64NOTEMar 07 2025
R-4.4-mac-aarch64NOTEMar 07 2025
R-4.4-linux-x86_64NOTEMar 07 2025
R-4.3-win-x86_64OKMar 07 2025
R-4.3-mac-x86_64OKMar 07 2025
R-4.3-mac-aarch64OKMar 07 2025

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