versus 0.3.1
CRAN release: 2025-11-15
New
table_idargument incompare()allows custom table identifiers. By default, outputs identify tables as “a” and “b”. You can now provide meaningful names e.g.compare(..., table_id = c("original", "updated")), which are reflected in the output ofcompare()and related functions. @elipoussonIn the output of
compare()with notable_idspecified, the table summarycompare()$tablesuses “a” and “b” as identifiers for thetablecolumn rather than “table_a” and “table_b” as used in prior versions. This is for consistency with the case when custom ids are provided using the newtable_idargument, so thatcompare()$tables$tablealways matches thetable_idargument.weave_diffs_wide()gains asuffixargument so column names in the wide output can use custom suffixes instead of_{table_id}. The default keeps the behaviour of prior versions. @elipousson
versus 0.3
The
compare()function now saves a shallow copy of the input tables. This means functions using a comparison, e.g.slice_diffs(), now only need thecomparisonargument, rather than requiring the original input tables to be re-supplied.New functions
weave_diffs_wide()anweave_diffs_long()are added, which show the differing values in context with other columns from the input tables.A new function
slice_unmatched()is added, used to get the rows from input tables a comparison shows as not existing in the other table
