R/compare_tables.R
compare_tables.Rd
If table attributes changed, then downstream processes relying on an expected structure may fail. This checks for common structural differences between tables, not EML describing the tables. This function augments compare_eml()
, which stops short of checking table attributes.
compare_tables(newest, previous)
newest | (list) Tables from the newest version of a data package. Use |
---|---|
previous | (list) Tables from the previous version of a data package. Use |
(character) Attributes that differ between versions
Checked attributes:
File names
Column names
Number of columns
compare_tables( newest = read_tables(api_read_metadata("knb-lter-hfr.118.32")), previous = read_tables(api_read_metadata("knb-lter-hfr.118.31")))#>#>#> [1] "Number of columns in hf118-01-ants.csv are different"