fetch_report.RdA 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.
fetch_report(x)A one-row tibble: `n`, `ok`, `failed`, `retryable`, and list-columns `by_stage`, `by_reason` and `missing` (the domains that produced nothing).
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)
#> # A tibble: 1 × 7
#> n ok failed retryable by_stage by_reason missing
#> <int> <int> <int> <int> <list> <list> <list>
#> 1 3 1 2 1 <tibble [2 × 2]> <tibble [2 × 2]> <chr [2]>