fetch_report: Summarise the outcome of a fetch or classification run

View source: R/outcomes.R

fetch_reportR Documentation

Summarise the outcome of a fetch or classification run

Description

A pure function over the returned tibble, deliberately **not** a stored summary. A snapshot goes stale the moment you filter the rows; recomputing means 'fetch_report(subset(x, retryable))' is always correct.

Usage

fetch_report(x)

Arguments

x

A tibble from [collect_content()] or [pie_cat()].

Value

A one-row tibble: 'n', 'ok', 'failed', 'retryable', and list-columns 'by_stage', 'by_reason' and 'missing' (the domains that produced nothing).

Examples

rows <- data.frame(
  domain_name = c("a.com", "b.com", "c.com"),
  status = c("ok", "failed", "failed"),
  stage = c("infer", "fetch", "process"),
  error_code = c(NA, "timeout", "thin_content"),
  retryable = c(FALSE, TRUE, FALSE)
)
fetch_report(rows)

rdomains documentation built on Aug. 2, 2026, 9:07 a.m.