assertr: Assertive Programming for R Analysis Pipelines

Share:

Provides functionality to assert conditions that have to be met so that errors in data used in analysis pipelines can fail quickly. Similar to 'stopifnot()' but more powerful, friendly, and easier for use in pipelines.

Author
Tony Fischetti [aut, cre]
Date of publication
2016-08-02 09:13:17
Maintainer
Tony Fischetti <tony.fischetti@gmail.com>
License
MIT + file LICENSE
Version
1.0.2
URLs

View on CRAN

Man pages

assert
Raises error if predicate is FALSE in any columns selected
assertr
assertr: Assertive programming for R analysis pipeline.
assert_rows
Raises error if predicate is FALSE for any row after applying...
in_set
Returns TRUE if value in set
insist
Raises error if dynamically created predicate is FALSE in any...
insist_rows
Raises error if dynamically created predicate is FALSE for...
maha_dist
Computes mahalanobis distance for each row of data frame
not_na
Returns TRUE if value is not NA
num_row_NAs
Counts number of NAs in each row
verify
Raises error if expression is FALSE anywhere
within_bounds
Creates bounds checking predicate
within_n_mads
Return a function to create robust z-score checking predicate
within_n_sds
Return a function to create z-score checking predicate

Files in this package

assertr
assertr/inst
assertr/inst/doc
assertr/inst/doc/assertr.html
assertr/inst/doc/assertr.Rmd
assertr/inst/doc/assertr.R
assertr/tests
assertr/tests/testthat.R
assertr/tests/testthat
assertr/tests/testthat/test-predicates.R
assertr/tests/testthat/test-assertions.R
assertr/tests/testthat/test-row-redux.R
assertr/NAMESPACE
assertr/NEWS
assertr/R
assertr/R/utils.R
assertr/R/assertions.R
assertr/R/row-redux.R
assertr/R/predicates.R
assertr/R/assertr.R
assertr/vignettes
assertr/vignettes/assertr.Rmd
assertr/README.md
assertr/MD5
assertr/build
assertr/build/vignette.rds
assertr/DESCRIPTION
assertr/man
assertr/man/in_set.Rd
assertr/man/within_n_sds.Rd
assertr/man/within_bounds.Rd
assertr/man/assert.Rd
assertr/man/within_n_mads.Rd
assertr/man/maha_dist.Rd
assertr/man/not_na.Rd
assertr/man/assert_rows.Rd
assertr/man/insist.Rd
assertr/man/verify.Rd
assertr/man/insist_rows.Rd
assertr/man/num_row_NAs.Rd
assertr/man/assertr.Rd
assertr/LICENSE