write_prov_tsv: write provenance as tsv file

View source: R/prov_tsv.R

write_prov_tsvR Documentation

write provenance as tsv file

Description

Write provenance metadata to a table. While this format is less expressive than JSON-LD, it is also more efficient, particularly when data is appended. At this time, only documents dcat:Distribution (schema:DataDownload) types. Column names are taken from DCAT but no official namespace is set.

Usage

write_prov_tsv(
  data_in = NULL,
  code = NULL,
  data_out = NULL,
  meta = NULL,
  issued = as.character(Sys.Date()),
  theme = NA_character_,
  keyword = NA_character_,
  provdb = "prov.tsv",
  append = fs::file_exists(provdb)
)

Arguments

data_in

path or URI for input data

code

path or URI for code

data_out

path or URI to output data

meta

path or URI to metadata describing the workflow

issued

publication date, as Date or character object

theme

theme name

keyword

keyword

provdb

path to output JSON file, default "prov.json"

append

Should we append to existing json or overwrite it?


cboettig/prov documentation built on Feb. 12, 2023, 5:54 p.m.