tests/testthat/test-export_shap.R

# Don't perform any further tests on CRAN due to running time.
testthat::skip_on_cran()
testthat::skip_on_ci()

debug_flag <- TRUE

results <- familiar:::test_export_specific(
  export_function = familiar:::export_shap,
  outcome_type_available = "multinomial",
  data_element = "shap",
  create_novelty_detector = FALSE,
  debug = debug_flag,
  export_args = list(
    feature_x = "feature_1",
    feature_y = "feature_2a"
  )
)



# Default
results <- familiar:::test_export_specific(
  export_function = familiar:::export_shap,
  outcome_type_available = "multinomial",
  data_element = "shap",
  create_novelty_detector = FALSE,
  debug = debug_flag
)

Try the familiar package in your browser

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

familiar documentation built on May 23, 2026, 1:07 a.m.