tests/testthat/test-exports.R

test_that("exported objects exist (if any)", {
  ns <- asNamespace("penalizedSVM")
  exports <- getNamespaceExports(ns)
  if (length(exports) == 0L) skip("No exports in NAMESPACE.")
  for (x in exports) {
    ok <- exists(x, envir = ns, inherits = FALSE) || methods::isGeneric(x)
    expect_true(ok, info = x)
  }
})

Try the penalizedSVM package in your browser

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

penalizedSVM documentation built on Sept. 15, 2025, 9:09 a.m.