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)

Arguments

newest

(list) Tables from the newest version of a data package. Use read_tables() to create this list.

previous

(list) Tables from the previous version of a data package. Use read_tables() to create this list.

Value

(character) Attributes that differ between versions

Details

Checked attributes:

  • File names

  • Column names

  • Number of columns

Examples

compare_tables( newest = read_tables(api_read_metadata("knb-lter-hfr.118.32")), previous = read_tables(api_read_metadata("knb-lter-hfr.118.31")))
#> Retrieving EML for data package knb-lter-hfr.118.32
#> Retrieving EML for data package knb-lter-hfr.118.31
#> [1] "Number of columns in hf118-01-ants.csv are different"