Skip to contents

Provenance records the service, source identifier, resolved URL, selections, retrieval time, source metadata, comments, and a metadata fingerprint. A batch result contains one record per successful table and explicit failure records with request indices. Fetch error conditions retain attempted queries and completed response context; partial tables are never returned as complete. Attributes can be discarded by transformations; save a sidecar with nso_write_manifest() before modifying the original result.

Usage

nso_provenance(x)

Arguments

x

A fetched result, fetch error condition, or a manifest from nso_read_manifest().

Value

A list of class nso_manifest with schema_version, records, and failures. An unannotated result has empty records and failures.

Examples

# Provenance is not inferred for an ordinary data frame.
observations <- data.frame(value = c(12, 15))
manifest <- nso_provenance(observations)
manifest$records
#> list()
manifest$failures
#> list()