Running ‘testthat.R’ [10s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate) # for testthat extensions
  > library(tidyhte)
  > 
  > test_check("tidyhte")
  Super Learner
  Version: 2.0-29
  Package created on 2024-02-06
  
  Loading required package: nnls
  Loaded gam 1.22-5
  
  [ FAIL 14 | WARN 0 | SKIP 1 | PASS 119 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • estimatr cannot be loaded (1): 'test-utils.R:46:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-api-mcate.R:73:5'): (code run outside of `test_that()`) ────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. └─KernelSmooth_cfg$new(neval = 100) at test-api-mcate.R:73:5
   2.   └─tidyhte (local) initialize(...)
   3.     └─tidyhte:::soft_require("nprobust")
   4.       └─rlang::check_installed(package)
  ── Error ('test-api-missing.R:64:5'): (code run outside of `test_that()`) ──────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. └─KernelSmooth_cfg$new(neval = 100) at test-api-missing.R:64:5
   2.   └─tidyhte (local) initialize(...)
   3.     └─tidyhte:::soft_require("nprobust")
   4.       └─rlang::check_installed(package)
  ── Error ('test-api-pcate.R:54:5'): (code run outside of `test_that()`) ────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. └─KernelSmooth_cfg$new(neval = 100, eval_min_quantile = 0.05) at test-api-pcate.R:54:5
   2.   └─tidyhte (local) initialize(...)
   3.     └─tidyhte:::soft_require("nprobust")
   4.       └─rlang::check_installed(package)
  ── Error ('test-api-repeats.R:52:5'): (code run outside of `test_that()`) ──────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. └─KernelSmooth_cfg$new(neval = 100, eval_min_quantile = 0.05) at test-api-repeats.R:52:5
   2.   └─tidyhte (local) initialize(...)
   3.     └─tidyhte:::soft_require("nprobust")
   4.       └─rlang::check_installed(package)
  ── Error ('test-api-weights.R:56:5'): (code run outside of `test_that()`) ──────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. └─KernelSmooth_cfg$new(neval = 100) at test-api-weights.R:56:5
   2.   └─tidyhte (local) initialize(...)
   3.     └─tidyhte:::soft_require("nprobust")
   4.       └─rlang::check_installed(package)
  ── Error ('test-config-construction.R:66:9'): Configs can be constructed successfully. ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. └─KernelSmooth_cfg$new(neval = 100) at test-config-construction.R:66:9
   2.   └─tidyhte (local) initialize(...)
   3.     └─tidyhte:::soft_require("nprobust")
   4.       └─rlang::check_installed(package)
  ── Failure ('test-config-construction.R:134:5'): Config types are as expected. ──
  Check on 'E$cfg' failed: Must be an R6 class, not 'NULL'
  Backtrace:
      ▆
   1. └─checkmate::expect_r6(E$cfg, classes = "HTE_cfg") at test-config-construction.R:134:5
   2.   └─checkmate::makeExpectation(x, res, info, label)
  ── Failure ('test-config-construction.R:135:5'): Config types are as expected. ──
  Check on 'E$qoi.cfg' failed: Must be an R6 class, not 'NULL'
  Backtrace:
      ▆
   1. └─checkmate::expect_r6(E$qoi.cfg, classes = "QoI_cfg") at test-config-construction.R:135:5
   2.   └─checkmate::makeExpectation(x, res, info, label)
  ── Failure ('test-config-construction.R:143:5'): Config types are as expected. ──
  Check on 'E$vimp.cfg' failed: Must be an R6 class, not 'NULL'
  Backtrace:
      ▆
   1. └─checkmate::expect_r6(E$vimp.cfg, classes = "VIMP_cfg") at test-config-construction.R:143:5
   2.   └─checkmate::makeExpectation(x, res, info, label)
  ── Failure ('test-config-construction.R:144:5'): Config types are as expected. ──
  Check on 'E$pcate.cfg' failed: Must be an R6 class, not 'NULL'
  Backtrace:
      ▆
   1. └─checkmate::expect_r6(E$pcate.cfg, classes = "PCATE_cfg") at test-config-construction.R:144:5
   2.   └─checkmate::makeExpectation(x, res, info, label)
  ── Failure ('test-config-construction.R:145:5'): Config types are as expected. ──
  Check on 'E$mcate.cfg' failed: Must be an R6 class, not 'NULL'
  Backtrace:
      ▆
   1. └─checkmate::expect_r6(E$mcate.cfg, classes = "MCATE_cfg") at test-config-construction.R:145:5
   2.   └─checkmate::makeExpectation(x, res, info, label)
  ── Failure ('test-config-construction.R:146:5'): Config types are as expected. ──
  Check on 'E$diag.cfg' failed: Must be an R6 class, not 'NULL'
  Backtrace:
      ▆
   1. └─checkmate::expect_r6(E$diag.cfg, classes = "Diagnostics_cfg") at test-config-construction.R:146:5
   2.   └─checkmate::makeExpectation(x, res, info, label)
  ── Error ('test-pseudooutcomes.R:55:5'): (code run outside of `test_that()`) ───
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. └─KernelSmooth_cfg$new(neval = 100) at test-pseudooutcomes.R:55:5
   2.   └─tidyhte (local) initialize(...)
   3.     └─tidyhte:::soft_require("nprobust")
   4.       └─rlang::check_installed(package)
  ── Error ('test-recipe-api.R:33:5'): recipe manipulations on moderators ────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `soft_require("nprobust")`: The package "nprobust" is required.
  Backtrace:
      ▆
   1. ├─checkmate::expect_r6(...) at test-recipe-api.R:33:5
   2. │ └─checkmate::checkR6(...)
   3. └─tidyhte::add_moderator(cfg, "KernelSmooth", x2, .model_arguments = rlang::list2(neval = 50))
   4.   ├─base::do.call(model_cls$new, .model_arguments)
   5.   └─R6 (local) `<fn>`(neval = 50)
   6.     └─tidyhte (local) initialize(...)
   7.       └─tidyhte:::soft_require("nprobust")
   8.         └─rlang::check_installed(package)
  
  [ FAIL 14 | WARN 0 | SKIP 1 | PASS 119 ]
  Error: Test failures
  Execution halted