Skip to contents

Presents matches one at a time for manual accept/reject decisions in an interactive R session. Each accepted or rejected match is applied via reconcile_override(), updating the reconciliation object in place. Useful for auditing fuzzy or flagged matches in the console or RStudio.

Usage

reconcile_review(
  reconciliation,
  type = c("flagged", "fuzzy", "all_unresolved"),
  suggest = TRUE,
  quiet = FALSE
)

Arguments

reconciliation

A reconciliation object returned by reconcile_tree(), reconcile_data(), or a related matcher.

type

A length-1 character vector. Which matches to review:

"flagged"

Only flagged matches (default).

"fuzzy"

Fuzzy and flagged matches.

"all_unresolved"

All unresolved species.

suggest

Logical. If TRUE and type = "all_unresolved", show the closest fuzzy candidate (if any) alongside unresolved names. Default TRUE.

quiet

Logical. If TRUE, suppress the end-of-review summary. Default FALSE.

Value

An updated reconciliation object reflecting accepted and rejected decisions.

Details

This function requires an interactive session. In non-interactive contexts (e.g., scripts, CI), it warns and returns reconciliation unchanged.

At each prompt the user may enter:

a

Accept the proposed match (calls reconcile_override() with action = "accept").

r

Reject the match (calls reconcile_override() with action = "reject").

s

Skip – move to the next item without changes.

q

Quit – return the current state immediately.

Examples

if (FALSE) { # \dontrun{
# Interactive review in RStudio console:
result <- reconcile_review(result, type = "flagged")
} # }