tests/testthat/helper-realworld.R

# Pages from other projects' test suites, in fixtures/realworld/ (see its
# README.md): pandas' read_html() fixtures and Mozilla Readability's
# synthetic test pages, each with the article Readability extracts.
realworld <- function(...) test_path("fixtures", "realworld", ...)

readability_pages <- function() {
  basename(list.dirs(realworld("readability"), recursive = FALSE))
}

# Whitespace-insensitive, for comparing text across two extractors.
squash <- function(x) gsub("[[:space:]]+", " ", x)

Try the zuhtml package in your browser

Any scripts or data that you put into this service are public.

zuhtml documentation built on Oct. 6, 2026, 5:06 p.m.