tests/testthat/test-06-browse.R

# skip_if_interactive() # to avoid opening tabs
skip(TRUE)
test_that("browse url", {

  expect_identical(
    ons_browse(),
    "https://developer.ons.gov.uk/"
  )
  expect_identical(
    ons_browse_qmi("cpih01"),
    "https://www.ons.gov.uk/economy/inflationandpriceindices/methodologies/consumerpriceinflationincludesall3indicescpihcpiandrpiqmi"
  )
})

Try the onsr package in your browser

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

onsr documentation built on May 29, 2024, 2:50 a.m.