Compare Local Dataset Checksums Against Platform Checksums

compare_dataset_checksums(report_id, datasets, version_type = NA)

Arguments

report_id

Report id or name

datasets

List of lists. Each inner list must contain:

data

The dataset as an R dataframe or nested list

data_set_key

Unique key identifying the dataset

chart_types

List of chart type strings (e.g. list("table"), list("sankey")).

subgroups

(optional) List of subgroup column names

data_set_label

(optional) User-friendly label

version_type

(optional) Version type to compare against on the platform: "draft" or "published". Defaults to NA (latest version regardless of type).

Value

Named list where each entry contains:

local

SHA-256 checksum of the local file

platform

SHA-256 checksum stored on the platform, or NA if not found

match

Logical, TRUE if both checksums are identical