assertthat: Easy Pre and Post Assertions

An extension to stopifnot() that makes it easy to declare the pre and post conditions that you code should satisfy, while also producing friendly error messages so that your users know what's gone wrong.

Getting started

Package details

AuthorHadley Wickham [aut, cre]
MaintainerHadley Wickham <hadley@rstudio.com>
LicenseGPL-3
Version0.2.1
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("assertthat")

Try the assertthat package in your browser

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

assertthat documentation built on May 1, 2019, 10:25 p.m.