Learn R Programming

testdat (version 0.4.2)

data-params: Expectation params

Description

Expectation params

Value

expect_*() functions are mainly called for their side effects. The expectation signals its result (e.g. "success", "failure"), which is logged by the current test reporter. In a non-testing context the expectation will raise an error with class expectation_failure if it fails.

Arguments

var

An unquoted column name to test.

vars

<tidy-select> A set of columns to test.

flt

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

miss

A vector of values to be treated as missing. The testdat.miss option is used by default.

data

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