Generate a markdown report from a pipeline log
log_report.RdParses a piplog object produced by pipfun::log_filter() and writes a
structured markdown document summarising errors, informational messages, and
affected surveys.
Arguments
- log
A
piplogobject (inherits fromdata.table). DefaultNULL, in which case it is loaded internally viapipfun::log_filter(name = "pipdata_log").- path
Character scalar. File path for the output
.mdfile. IfNULL(default), the report is returned as a character vector and not written to disk.- title
Character scalar. Title for the report (default:
"Pipeline Log Report").- overwrite
Logical. Overwrite
pathif it already exists (default:FALSE).
Value
Invisibly, the report as a character vector (one element per line).
If path is non-NULL, the file is written as a side-effect.
Details
The report contains:
Run metadata (time window, total entries, success/fail counts).
Processing summary: total, cleaned, and failed counts (from
process_summary_inflog entry).Auxiliary file changes: which measures changed and how many surveys were affected (from
aux_changes_inflog entry).Summary table by error / info type.
Country-level breakdown of errors.
Inventory verification: confirmed vs missing surveys (from
inv_update_inflog entry).Surveys skipped during data processing or metadata creation (
skipped_svys_data/skipped_svys_metadataentries), with reasons.List of surveys that failed processing (
null_svys_infentry).
Sections that rely on a specific logmeta entry are silently omitted when that entry is absent from the log.
See also
Other pd_process_data pipeline:
add_attr(),
aux_hash_candidates(),
build_pip_inventory(),
create_attr(),
data_to_dt(),
filter_aux_data(),
filter_aux_inv(),
fix_year_var(),
get_aux_hashes(),
inv_dlw_load(),
inv_to_process(),
pd_aux_attr(),
pd_deflation(),
save_pip_data(),
survey_id_to_attr(),
valid_dlw_load()