td_write_metadata: Write the metadata published with a snapshot

View source: R/manifest.R

td_write_metadataR Documentation

Write the metadata published with a snapshot

Description

Writes manifest.csv and README.md into the snapshot directory, ready to be uploaded alongside the Parquet files.

Usage

td_write_metadata(
  version = format(Sys.Date(), "%Y"),
  dir = build_dir(),
  repo = taxadb_repo(),
  archival = FALSE,
  db = td_connect()
)

Arguments

version

the snapshot version to describe

dir

the build output directory, see build_dir()

repo

the data repository the snapshot will be published to

archival

is this a republication of a historical release rather than a fresh build? Archival snapshots are byte-identical to what that version originally contained, so they predate the current schema rules and the README says so.

db

a duckdb connection

Details

The README states what the tables are, what the schema means, where each provider's data came from and under what licence, so that someone who finds the data without the package can still use it.

Value

the paths written, invisibly

Examples

## Not run: 
td_write_metadata("2026")

## End(Not run)

taxadb documentation built on Aug. 31, 2026, 5:07 p.m.