tests/testthat/test-exports.R

test_that("exported objects exist in namespace", {
      ns <- asNamespace("tester")
      exp <- getNamespaceExports("tester")
      miss <- exp[!vapply(exp, exists, logical(1), envir = ns, inherits = FALSE)]
      expect_length(miss, 0)
    })

Try the tester package in your browser

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

tester documentation built on Nov. 6, 2025, 1:14 a.m.