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.