Assertions to Check Properties of Sets

A set of predicates and assertions for checking the properties of sets. This is mainly for use by other package developers who want to include run-time testing features in their own packages. End-users will usually want to use assertive directly.


Project Status: Active - The project has reached a stable, usable state and is being actively developed. Is the package on CRAN? SemaphoreCI Build Status AppVeyor Build Status

A set of predicates and assertions for checking the properties of sets. Most of the documentation is on the assertive page. End-users will usually want to use assertive directly.

Installation

To install the stable version, type:

install.packages("assertive.sets")

To install the development version, you first need the devtools package.

install.packages("devtools")

Then you can install the assertive.sets package using

library(devtools)
install_bitbucket("richierocks/assertive.sets")

Predicates

is_set_equal checks if two vectors contain the same elements (maybe in different orders).

is_subset and is_superset check if one set is contained in another.

Assertions

Predicates all return a single logical value and have one corresponding assertion. For example, is_subset has assert_is_subset.

News

0.0-3 Added are_disjoint_sets, are_intersecting_sets. Removed withr dependency. 0.0-2 is_set_equal renamed as are_set_equal. is_subset and is_superset gain a "strictly" argument. Use of devtools in tests replaced with withr. 0.0-1 Content extracted from assertive 0.3-0, and tidied.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("assertive.sets")

0.0-3 by Richard Cotton, 2 years ago


https://bitbucket.org/richierocks/assertive.sets


Report a bug at https://bitbucket.org/richierocks/assertive.sets/issues


Browse source code at https://github.com/cran/assertive.sets


Authors: Richard Cotton [aut, cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports assertive.base

Suggests testthat


Imported by DTSg, assertive, poio.


See at CRAN