add_checks: Add checks or delete check

Description Usage Arguments Value Functions Examples

View source: R/checks.R

Description

Note that this does not work in place. See examples

Usage

1
2
3
add_checks(cf, ...)

delete_check(cf, check_name)

Arguments

cf

a CanonicalForm object

...

named arguments. Each name will be the name of the check, and each value should be a check function

check_name

the name of the check to delete

Value

modified CanonicalForm object

Functions

Examples

1
2
3
4
5
6
cf <- extract_canonical_form(cars)
check <- function(x) TRUE
cf <- add_checks(cf, new_check = check) # note this does not work in place
print(get_check_names(cf))
cf <- delete_check(cf, "new_check")
print(get_check_names(cf))

colin-fraser/CanonicalForms documentation built on Jan. 8, 2022, 8:42 a.m.