Skip to contents

Produce an HTML file summarising a reconciliation object: provenance metadata, match-type breakdown, full mapping table, and a list of unresolved / flagged species. The file has no external dependencies (CSS is inlined), so it is suitable for sharing with collaborators, pasting into supplementary materials, or archiving next to analysis outputs.

Usage

reconcile_report(
  reconciliation,
  file,
  title = "Reconciliation Report",
  open = interactive()
)

Arguments

reconciliation

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

file

A length-1 character vector. Output file path. Must end in .html.

title

A length-1 character vector. Report title shown at the top of the page. Default is generic.

open

Logical. Open the finished report in the default browser? Defaults to TRUE in interactive sessions, FALSE otherwise (so it does not block scripts).

Value

The file path, invisibly.

Details

Top of the reconciliation report: run header, coverage summary, and match-composition chart.

Layout

The report opens with a run header (the originating reconcile_tree() / reconcile_data() call, timestamp, package version), the match-coverage summary, and a compact bar chart of match composition. Below those, per-match-type detail tables (normalised, synonym, fuzzy, flagged) and the unresolved-species list make each decision auditable. The bird-workflow vignette includes annotated screenshots of both sections.

Examples

data(avonet_subset)
data(tree_jetz)
rec <- reconcile_tree(avonet_subset, tree_jetz,
                      x_species = "Species1", authority = NULL)
#>  Reconciling 919 data names vs 657 tree tips
#>  Matching 919 x 657 names through 2 stages...
#>  Stage 1/2: Exact matching...
#>  Stage 2/2: Normalised matching (0 matched so far)...
#>  Matched 657/919 data names to tree tips
f <- tempfile(fileext = ".html")
reconcile_report(rec, file = f, open = FALSE)
#>  Report written to /var/folders/7x/ytfpq14s0v18frbm9v_w9f4c0000gq/T//Rtmphv6sDQ/file2dc627ceed88.html
cat("Report written to:", f, "\n")
#> Report written to: /var/folders/7x/ytfpq14s0v18frbm9v_w9f4c0000gq/T//Rtmphv6sDQ/file2dc627ceed88.html