qassert_all: Check single rule against all or enumerated variables

View source: R/qassertm.R

qassert_allR Documentation

Check single rule against all or enumerated variables

Description

Ergonomic wraper for qassert to check multiple variables against a single rule

Usage

qassert_all(rule, ...)

Arguments

rule

[[character]]
Any number of named arguments like var.name=rule
See details of qtest for rule explanation.

...

[[var.name]]
list of unquoted variables that should match rule if none provided, uses all variables in local scope

Value

See qassert.

See Also

qassertm

Examples

x <- TRUE; y <- FALSE
# check all variables, scoped inside function
foofunc <- function(x, y) { qassert_all('n'); print(x); }
foofunc(1, 2)
# only enumerated variables
qassert_all('l', x, y)


LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.