
Combine reviewed batches into the final verified deliverables.
Source:R/combine_reviewed.R
combine_reviewed.RdWalks every batch_*/ folder under review_dir, merges each
paper's AI baseline with the reviewer's saved edits (falling back to the
AI's own values for anything not yet touched), and writes the two final
workbooks. Every cell a reviewer changed is filled red.
Usage
combine_reviewed(
review_dir,
out,
extraction_out = "final_extraction_verified.xlsx",
qa_out = "qa_33items_verified.xlsx",
timestamp = FALSE
)Arguments
- review_dir
Either the parent folder holding all
batch_N/folders (the normal, whole-corpus combine), or a singlebatch_N/folder directly (to combine just one batch – this is also whatrun_app's in-app "Export batch output" button does, always timestamped).- out
Destination folder for the two output files. No default on purpose – see
split_for_review'soutparameter for why.- extraction_out, qa_out
Output filenames (written under
out).- timestamp
If TRUE, inserts a timestamp before each filename's extension (e.g.
final_extraction_verified_2026-10-07_1432.xlsx) instead of overwriting on every call. Default FALSE, since this is typically run once, deliberately, as the final combine – not repeatedly while reviewing is still in progress (unlike the app's own export button, which always timestamps).