Skip to contents

Record this alongside an analysis: the dataset release that answered, its source ("snapshot" for a past release, "live" for the live database, which also serves the current release), whether the client was pinned, the server and package versions, and the data licence.

Usage

provenance(x = NULL, client = plasticdb_client())

Arguments

x

A result from this package, or NULL for the client's.

client

A plasticdb_client().

Value

A named list.

Details

Given a result (a tibble, record or AAStringSet from this package), provenance() returns what answered that call, including the request URL, whether it came from the cache, and the server's total for a list. Without one it describes the client, making a request first when this session has made none, so the release is known.

Examples

tbl <- tibble::tibble(id = 1L)
attr(tbl, "plasticdb") <- list(release = "2026.50",
    release_source = "snapshot", pinned = TRUE)
provenance(tbl)$release