Skip to contents

Format a concise one-line or bullet summary of a spec_diff

Usage

format_diff_summary(diff, max_items = 6L)

Arguments

diff

A spec_diff object returned by diff_spec_ir().

max_items

Maximum number of changes to list before truncating.

Value

A character scalar summarizing the changes.

Examples

s1 <- new_spec_ir(hierarchy = list(levels = 1L, n_obs = 100L))
s2 <- new_spec_ir(hierarchy = list(levels = 1L, n_obs = 250L))
format_diff_summary(diff_spec_ir(s1, s2))
#> [1] "hierarchy.n_obs: 100 -> 250"