Plan a dataset's bundle: which tables, cut how, and what is left out
Source:R/bundle.R
bundle_plan.RdThe tables are the record's own (datasets.json tables[]) plus the shared tables a
download needs to be used alone — sample, cruise, taxon, measurement_type —
wherever the release has them. Each table is cut to this dataset by one rule:
Usage
bundle_plan(
record,
table_columns,
supplemental = character(),
supplemental_rows = NULL
)Value
A data frame, one row per table in presentation order (obs, sample, the
dataset's other tables, then the shared vocabularies, then exclusions): table,
included, rule, link, role, source (record | companion), reason.
Details
dataset_key— the table carries adataset_keycolumn: this dataset's rows;dataset_key_or_referenced—sampleonly: this dataset's rows, plus the samples its other tables point at (a derived product's observations sit on another dataset's casts) and their parents;linked— a shared table withoutdataset_key: the rows the bundle reaches throughlink, the first ofsample_key,taxon_key,measurement_type,cruise_key,grid_key,ship_keythe table carries;whole— a small table with none of those (e.g.region,lookup);excluded— a supplemental table (the full-resolutionobs_ctd_full,obs_mets_full): hundreds of millions of rows partitioned by cruise, left out and named in the README with where to get them;absent— named by the record but not in this release.
A companion table that ends up with no rows is dropped by bundle_build_tables().