Skip to contents

The conformance check for a round trip: array descriptions must agree (dims, shape, chunks, dtype, fill, codec, attributes, coordinate values) and every array's global refs rows must agree on index, presence, resolved location, offset, size and inline bytes. Source paths are compared after each side's own remap for target.

Usage

ic_byterefs_compare(x, y, target = NULL)

Arguments

x, y

byterefs stores (see ic_byterefs_read()).

target

remap target used to resolve paths on both sides.

Value

a data frame of checks: array, check, ok, detail.

Examples

ex <- ic_example_repo()
repo <- ic_repo_open(ex$path, authorize = ex$authorize)
now <- ic_to_byterefs(ic_session_readonly(repo, branch = "main"))
then <- ic_to_byterefs(ic_session_readonly(repo, tag = "v1"))
cmp <- ic_byterefs_compare(then, now)
cmp[!cmp$ok, ]
#>   array       check    ok detail
#> 1     * array names FALSE  small