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.

Package details

AuthorSam El-Kamand [aut, cre, cph] (<https://orcid.org/0000-0003-2270-8088>)
MaintainerSam El-Kamand <sam.elkamand@gmail.com>
LicenseMIT + file LICENSE
Version0.1.0
URL https://github.com/selkamand/assertions
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("assertions")

Try the assertions package in your browser

Any scripts or data that you put into this service are public.

assertions documentation built on June 7, 2023, 6:03 p.m.