tests/testthat/test-reflection.R

test_that("reflection works", {
  skip_on_cran() # snot really a problem, if not working. also obvious, if buggy. slow.
  util_load_manual()
  expect("titles" %in% names(..manual),
         failure_message = "load manual did not read titles")
  expect_true(
    any(
      vapply(
        mget(ls(.indicator_or_descriptor),
             envir = .indicator_or_descriptor), identity,
        FUN.VALUE = logical(1))), info = "Any Indicator in Package")
})

Try the dataquieR package in your browser

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

dataquieR documentation built on Jan. 8, 2026, 5:08 p.m.