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.2.0
Imports: cli, glue, methods, rlang
Suggests: covr, knitr, rmarkdown, shiny, testthat (≥ 3.0.0), withr
Published: 2024-11-19
DOI: 10.32614/CRAN.package.assertions
Author: Sam El-Kamand ORCID iD [aut, cre, cph]
Maintainer: Sam El-Kamand <sam.elkamand at gmail.com>
BugReports: https://github.com/selkamand/assertions/issues
License: MIT + file LICENSE
URL: https://github.com/selkamand/assertions, https://selkamand.github.io/assertions/
NeedsCompilation: no
Materials: README NEWS
CRAN checks: assertions results

Documentation:

Reference manual: assertions.pdf
Vignettes: create_custom_assertions (source, R code)

Downloads:

Package source: assertions_0.2.0.tar.gz
Windows binaries: r-devel: assertions_0.2.0.zip, r-release: assertions_0.2.0.zip, r-oldrel: assertions_0.2.0.zip
macOS binaries: r-release (arm64): assertions_0.2.0.tgz, r-oldrel (arm64): assertions_0.2.0.tgz, r-release (x86_64): assertions_0.2.0.tgz, r-oldrel (x86_64): assertions_0.2.0.tgz
Old sources: assertions archive

Reverse dependencies:

Reverse imports: mutationtypes

Linking:

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