assertions: Simple Assertions for Beautiful and Customisable Error Messages

Provides simple assertions with sensible defaults and customisable error messages. It offers convenient assertion call wrappers and a general assert function that can handle any condition. Default error messages are user friendly and easily customized with inline code evaluation and styling powered by the 'cli' package.

Version: 0.1.0
Imports: cli, glue, rlang
Suggests: covr, knitr, rmarkdown, shiny, testthat (≥ 3.0.0), withr
Published: 2023-06-02
Author: Sam El-Kamand ORCID iD [aut, cre, cph]
Maintainer: Sam El-Kamand <sam.elkamand at gmail.com>
License: MIT + file LICENSE
URL: https://github.com/selkamand/assertions
NeedsCompilation: no
Materials: README
CRAN checks: assertions results

Documentation:

Reference manual: assertions.pdf
Vignettes: create_custom_assertions

Downloads:

Package source: assertions_0.1.0.tar.gz
Windows binaries: r-prerel: assertions_0.1.0.zip, r-release: assertions_0.1.0.zip, r-oldrel: assertions_0.1.0.zip
macOS binaries: r-prerel (arm64): assertions_0.1.0.tgz, r-release (arm64): assertions_0.1.0.tgz, r-oldrel (arm64): assertions_0.1.0.tgz, r-prerel (x86_64): assertions_0.1.0.tgz, r-release (x86_64): assertions_0.1.0.tgz

Reverse dependencies:

Reverse imports: mutationtypes

Linking:

Please use the canonical form https://CRAN.R-project.org/package=assertions to link to this page.