tests/testthat/test-sitrep.R

test_that("pkgdown_sitrep works", {
  local_edition(3)

  # URL not in the pkgdown config
  pkg <- test_path("assets/figure")
  expect_snapshot(pkgdown_sitrep(pkg))
  # URL only in the pkgdown config
  pkg <- test_path("assets/cname")
  expect_snapshot(pkgdown_sitrep(pkg))
  # URL everywhere
  pkg <- test_path("assets/open-graph")
  expect_snapshot(pkgdown_sitrep(pkg))
})

Try the pkgdown package in your browser

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

pkgdown documentation built on May 29, 2024, 10:27 a.m.