
Format a concise one-line or bullet summary of a spec_diff
Source: R/spec-diff.R
format_diff_summary.RdFormat a concise one-line or bullet summary of a spec_diff
Arguments
- diff
A
spec_diffobject returned bydiff_spec_ir().- max_items
Maximum number of changes to list before truncating.
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"