These functions are defunct.

• expect_where() works exactly like expect_all(). When testdat used dplyr::vars() as standard expect_where() provided an alternative interface using tidy-select.

filter_expect(data, expect_function, ..., not = TRUE)

expect_where(
where,
func,
flt = TRUE,
data = get_testdata(),
args = list(),
func_desc = NULL
)

Arguments

data

A data frame to test. The global test data is used by default.

expect_function

An expectation function.

...

Arguments to pass to expect_function.

not

Reverse the results of the check.

where

<tidy-select> Columns to check

flt

<data-masking> A filter specifying a subset of the data frame to test.

Value

The input data frame filtered to records failing the expectation.