tests/testthat/test-export_model_performance.R

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

debug_flag <- FALSE

# Default
familiar:::test_export(
  export_function = familiar:::export_model_performance,
  data_element = "model_performance",
  not_available_all_prospective = TRUE,
  not_available_mostly_prospective = c("binomial", "multinomial", "survival"),
  not_available_single_sample = c("binomial", "multinomial", "survival"),
  outcome_type_available = c("continuous", "binomial", "multinomial", "survival"),
  estimation_type = "point",
  create_novelty_detector = FALSE,
  use_prediction_table = TRUE,
  debug = debug_flag
)

results <- familiar:::test_export_specific(
  export_function = familiar:::export_model_performance,
  data_element = "model_performance",
  not_available_all_prospective = TRUE,
  not_available_mostly_prospective = c("binomial", "multinomial", "survival"),
  not_available_single_sample = c("binomial", "multinomial", "survival"),
  outcome_type_available = c("continuous", "binomial", "multinomial", "survival"),
  create_novelty_detector = FALSE,
  use_prediction_table = 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.