pkgdown/mathjax-config.html

Skip to contents

Marks a keyed data frame as "watched". Watched data frames are automatically stamped before each dplyr verb, so check_drift() always reports changes from the most recent transformation step.

Usage

watch(.data)

Arguments

.data

A keyed data frame.

Value

Invisibly returns .data with watched attribute set and a baseline snapshot committed.

See also

unwatch() to stop watching, stamp() for manual snapshots.

Examples

df <- key(data.frame(id = 1:5, x = letters[1:5]), id) |> watch()
df2 <- df |> dplyr::filter(id > 2)
check_drift(df2)