assertthat: Easy pre and post assertions.

assertthat is 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 they've done wrong.

Author
'Hadley Wickham' [aut, cre]
Date of publication
2013-12-06 00:51:10
Maintainer
'Hadley Wickham' <h.wickham@gmail.com>
License
GPL-3
Version
0.1

View on CRAN

Man pages

are_equal
Are two objects equal?
assertions-file
Useful test related to files
assert-is
Missing is functions.
assert_that
Assert that certain conditions are true.
has_args
Check a function has specified arguments
has_attr
Has attribute or name?
noNA
Does object contain any missing values?
not_empty
Check an object doesn't have any empty dimensions
on_failure
Custom failure messages for assertions.
scalar
Assert input is a scalar.
validate_that
Validate that certain conditions are true.

Files in this package

assertthat
assertthat/inst
assertthat/inst/tests
assertthat/inst/tests/test-base.R
assertthat/tests
assertthat/tests/test-that.R
assertthat/NAMESPACE
assertthat/R
assertthat/R/base.r
assertthat/R/assert-that.r
assertthat/R/base-logical.r
assertthat/R/assertions-file.r
assertthat/R/base-comparison.r
assertthat/R/utils.r
assertthat/R/assertions-scalar.R
assertthat/R/on-failure.r
assertthat/R/validate-that.R
assertthat/R/base-is.r
assertthat/R/base-misc.r
assertthat/R/assertions.r
assertthat/README.md
assertthat/MD5
assertthat/DESCRIPTION
assertthat/man
assertthat/man/assertions-file.Rd
assertthat/man/assert-is.Rd
assertthat/man/on_failure.Rd
assertthat/man/assert_that.Rd
assertthat/man/has_args.Rd
assertthat/man/noNA.Rd
assertthat/man/not_empty.Rd
assertthat/man/has_attr.Rd
assertthat/man/scalar.Rd
assertthat/man/are_equal.Rd
assertthat/man/validate_that.Rd