Scans a meta folder produced by save_report and returns a
summary data frame with one row per spec JSON file. Uses _index.json
when available (fast); falls back to scanning every JSON file otherwise.
Usage
list_reports(
meta_dir = tfl_get_option("meta_directory"),
sort_by = c("datetime", "doc_file", "spec_file")
)Value
A data frame with columns:
- spec_file
Hash-named spec JSON filename.
- doc_file
Target DOCX filename stored at save time.
- datetime
ISO-8601 timestamp of when
save_report()was called.- n_specs
Number of TFL specs inside the JSON.
- is_latest
Logical -
TRUEfor the most-recent entry perdoc_file; older entries areFALSE(obsolete candidates).- data_refs
Character vector of data JSON base-names referenced by this spec (without
.jsonextension).
When no spec JSONs are found in meta_dir, returns
invisible(empty_data_frame) and prints an informational message.