check_new_data: Check for required column at bake-time

View source: R/misc.R

check_new_dataR Documentation

Check for required column at bake-time

Description

When baking a step, create an information error message when a column that is used by the step is not present in new_data.

Usage

check_new_data(req, object, new_data)

Arguments

req

A character vector of required columns.

object

A step object.

new_data

A tibble of data being baked.

Value

Invisible NULL. Side effects are the focus of the function.

See Also

developer_functions


recipes documentation built on Aug. 26, 2023, 1:08 a.m.