Skip to contents

Returns the entropia_prov attribute attached by entropia_analysis_dataset(): a list recording the dataset name, the database schema_version, the schema content_hash, the source_path, the captured filters, the package_version, the built_at timestamp and the r_version. Aborts with entropia_error_invalid_argument when x carries no provenance stamp.

Usage

entropia_provenance(x)

Arguments

x

An object carrying a provenance stamp, e.g. the output of entropia_analysis_dataset().

Value

A list of class entropia_provenance.

Examples

con <- entropia_connect(system.file("extdata", "entropia-example.sqlite",
  package = "entropiaR"
))
ds <- entropia_analysis_dataset(con, asset_type == "image")
entropia_provenance(ds)
#> entropiaR dataset provenance
#>   name:           <unnamed>
#>   schema version: 0029_rag_chunks
#>   content hash:   09d4c603b66d68c4c0cef0f51ff09a04fb30a49fe200907ef69693d11dd25732
#>   source path:    /home/runner/work/_temp/Library/entropiaR/extdata/entropia-example.sqlite
#>   filters:        asset_type == "image"
#>   package:        0.0.0.9000
#>   built at:       2026-08-24T01:10:16.834Z
#>   R version:      R version 4.6.1 (2026-06-24)
entropia_disconnect(con)