tests/testthat/test-api-surface.R

test_that("internal constructor and validator are not exported", {
  exports <- getNamespaceExports("xplus")

  expect_false("new_xplus" %in% exports)
  expect_false("validate_xplus" %in% exports)
})

Try the xplus package in your browser

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

xplus documentation built on Sept. 26, 2026, 5:07 p.m.