Running ‘testthat.R’ [79s/64s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(familiar)
  > 
  > test_check("familiar")
  Starting 2 test processes
  [ FAIL 4 | WARN 0 | SKIP 59 | PASS 4021 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (58)
  • Skip hyperparameter optimisation, unless manual. (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-metric_auc_roc_S4.R:56:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Ecdat'
  Backtrace:
      ▆
   1. ├─familiar:::test_all_metrics(...) at test-metric_auc_roc_S4.R:56:0
   2. │ └─familiar:::test.create_good_data_set(outcome_type)
   3. │   └─data.table::data.table(Ecdat::Caschool)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base withOneRestart(expr, restarts[[1L]])
   7.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-metric_brier_S4.R:56:1): (code run outside of `test_that()`) ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Ecdat'
  Backtrace:
      ▆
   1. ├─familiar:::test_all_metrics(metrics = familiar:::.get_available_brier_metrics()) at test-metric_brier_S4.R:56:0
   2. │ └─familiar:::test.create_good_data_set(outcome_type)
   3. │   └─data.table::data.table(Ecdat::Caschool)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base withOneRestart(expr, restarts[[1L]])
   7.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-metric_concordance_index_S4.R:89:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Ecdat'
  Backtrace:
      ▆
   1. ├─familiar:::test_all_metrics(...) at test-metric_concordance_index_S4.R:89:0
   2. │ └─familiar:::test.create_good_data_set(outcome_type)
   3. │   └─data.table::data.table(Ecdat::Caschool)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base withOneRestart(expr, restarts[[1L]])
   7.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-stratification.R:10:3): (code run outside of `test_that()`) ─────
  Error in `.report_missing_package_messages()`: The following package has to be installed to train a model for inferring hyperparameter scores: laGP.
  The following package has to be installed to compute p-values for model calibration tests: harmonicmeanp.
  The following packages have to be installed: laGP and harmonicmeanp.
  
  Install from CRAN: 
  
  	install.packages(c("laGP", "harmonicmeanp"))
  Backtrace:
      ▆
   1. ├─familiar:::test_train(...) at test-stratification.R:10:2
   2. └─familiar:::test_train(...)
   3.   └─familiar .local(data, ...)
   4.     ├─base::do.call(...)
   5.     └─familiar `<fn>`(...)
   6.       └─familiar:::.report_missing_package_messages()
  
  [ FAIL 4 | WARN 0 | SKIP 59 | PASS 4021 ]
  Error: Test failures
  Execution halted