tests/testthat/test_helpers_tst.R

# Helpers of the tests (tests/testthat/helpers/) -----------------------------

test_that("skip_if_no_setups() skips only for an empty list", {
  expect_condition(skip_if_no_setups(list()), class = "skip")
  expect_no_condition(skip_if_no_setups(list(a = 1)), class = "skip")
})

Try the projpred package in your browser

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

projpred documentation built on Nov. 21, 2026, 1:07 a.m.