tests/testthat/test-epc.R

test_that("EPC functions are defunct and point to the new service", {
  fns <- list(ukh_epc_set_key, ukh_epc_search, ukh_epc_certificate,
              ukh_epc_summary, ukh_epc_bulk, ukh_epc_recommendations_summary)
  for (f in fns) {
    expect_error(f(), "defunct")
    expect_error(f("E09000033", type = "domestic"), "get-energy-performance-data")
  }
})

Try the ukhousing package in your browser

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

ukhousing documentation built on Nov. 3, 2026, 9:06 a.m.