Package: polle Check: tests New result: ERROR Running ‘test-all.R’ [182s/180s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > suppressPackageStartupMessages(library("testthat")) > options(Ncpus = 2) > data.table::setDTthreads(2) > test_check("polle") Loading required package: polle Loading required package: SuperLearner Loading required package: nnls Super Learner Version: 2.0-40 Package created on 2025-12-14 Saving _problems/test-q_models-61.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 937 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-q_models.R:59:3'): q_models checks formula input ───────────── Expected `policy_eval(policy_data = pd, policy = p_dynamic, q_models = q_glm(formula = ~ns(C)))` not to throw any errors. Actually got a with message: could not find function "ns" when calling 'q_glm' with formula: V_res ~ ns(C) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 937 ] Error: ! Test failures. Execution halted Package: tidyhte Check: tests New result: ERROR Running ‘testthat.R’ [15s/15s] 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-40 Package created on 2025-12-14 estimating nuisance models [-----------------------------------] splits: 0 / 3Loading required package: nnls Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: glmnet Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., deg.gam = 3) : SL.gam requires the gam package, but it isn't available Saving _problems/test-api-mcate-112.R Saving _problems/test-api-mcate-117.R Saving _problems/test-api-mcate-125.R Saving _problems/test-api-mcate-158.R estimating nuisance models [-----------------------------------] splits: 0 / 3 estimating nuisance models [===========>-----------------------] splits: 1 / 3 estimating nuisance models [======================>------------] splits: 2 / 3 estimating nuisance models [===================================] splits: 3 / 3 estimating nuisance models [-----------------------------------] splits: 0 / 4Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 2) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 3) : SL.gam requires the gam package, but it isn't available Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Error in SL.gam(..., degree = 5) : SL.gam requires the gam package, but it isn't available Saving _problems/test-api-repeats-92.R Saving _problems/test-api-repeats-97.R estimating nuisance models [-----------------------------------] splits: 0 / 4 estimating nuisance models [========>--------------------------] splits: 1 / 4 estimating nuisance models [=================>-----------------] splits: 2 / 4 estimating nuisance models [=========================>---------] splits: 3 / 4 estimating nuisance models [===================================] splits: 4 / 4 estimating MCATEs [----------------------------------------] covariates: 0 / 1 estimating MCATEs [----------------------------------------] covariates: 0 / 2 estimating MCATEs [===================>--------------------] covariates: 1 / 2 estimating MCATEs [========================================] covariates: 2 / 2 Loading required namespace: gam Failed with error: 'there is no package called 'gam'' Saving _problems/test-predictor-49.R estimating nuisance models [-----------------------------------] splits: 0 / 3 estimating nuisance models [===========>-----------------------] splits: 1 / 3 estimating nuisance models [======================>------------] splits: 2 / 3 estimating nuisance models [===================================] splits: 3 / 3 [ FAIL 7 | WARN 40 | SKIP 6 | PASS 163 ] ══ Skipped tests (6) ═══════════════════════════════════════════════════════════ • On CRAN (6): 'test-api-pcate.R:130:5', 'test-api-pcate.R:156:5', 'test-api-repeats.R:102:5', 'test-api-repeats.R:108:5', 'test-api-repeats.R:129:5', 'test-utils.R:47:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-api-mcate.R:107:5'): Estimate Plugin Models ──────────────────── Error in `UseMethod("predict")`: no applicable method for 'predict' applied to an object of class "NULL" Backtrace: ▆ 1. └─tidyhte::produce_plugin_estimates(...) at test-api-mcate.R:107:5 2. └─y_model$mu1$predict(pred_data) 3. ├─tidyhte:::muffle_warnings(...) 4. │ └─base::withCallingHandlers(...) 5. ├─base::drop(predict(self$model, newdata = X_df)$pred) 6. ├─stats::predict(self$model, newdata = X_df) 7. └─SuperLearner::predict.SuperLearner(self$model, newdata = X_df) 8. ├─base::do.call(...) 9. └─stats::predict(...) ── Error ('test-api-mcate.R:117:5'): Construct Pseudo-outcomes ───────────────── Error in `UseMethod("select")`: no applicable method for 'select' applied to an object of class "NULL" Backtrace: ▆ 1. └─tidyhte::construct_pseudo_outcomes(...) at test-api-mcate.R:117:5 2. ├─base::unlist(...) 3. └─dplyr::select(...) ── Error ('test-api-mcate.R:122:5'): Estimate QoIs ───────────────────────────── Error in `check_data_has_hte_cfg(data)`: Must attach HTE_cfg with `attach_config`. Backtrace: ▆ 1. ├─testthat::expect_message(...) at test-api-mcate.R:122:5 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─tidyhte::estimate_QoI(E$data4) 8. └─tidyhte:::check_data_has_hte_cfg(data) ── Failure ('test-api-mcate.R:145:5'): Check results data ────────────────────── Check on 'E$results' failed: Must be a tibble, not 'NULL' Backtrace: ▆ 1. └─checkmate::expect_tibble(...) at test-api-mcate.R:145:5 2. └─checkmate::makeExpectation(x, res, info, label) ── Error ('test-api-repeats.R:87:5'): Estimate Plugin Models ─────────────────── Error in `UseMethod("predict")`: no applicable method for 'predict' applied to an object of class "NULL" Backtrace: ▆ 1. └─tidyhte::produce_plugin_estimates(...) at test-api-repeats.R:87:5 2. └─y_model$mu1$predict(pred_data) 3. ├─tidyhte:::muffle_warnings(...) 4. │ └─base::withCallingHandlers(...) 5. ├─base::drop(predict(self$model, newdata = X_df)$pred) 6. ├─stats::predict(self$model, newdata = X_df) 7. └─SuperLearner::predict.SuperLearner(self$model, newdata = X_df) 8. ├─base::do.call(...) 9. └─stats::predict(...) ── Error ('test-api-repeats.R:97:5'): Construct Pseudo-outcomes ──────────────── Error in `UseMethod("select")`: no applicable method for 'select' applied to an object of class "NULL" Backtrace: ▆ 1. └─tidyhte::construct_pseudo_outcomes(...) at test-api-repeats.R:97:5 2. ├─base::unlist(...) 3. └─dplyr::select(...) ── Error ('test-predictor.R:49:5'): SL_predictor gives expected output ───────── Error: You have selected gam as a library algorithm but either do not have the gam package installed or it can not be loaded Backtrace: ▆ 1. └─slpred$fit(data) at test-predictor.R:49:5 2. ├─tidyhte:::muffle_warnings(...) 3. │ └─base::withCallingHandlers(...) 4. └─SuperLearner::SuperLearner(...) 5. └─SuperLearner:::.check.SL.library(...) 6. └─SuperLearner:::.SL.require("gam", message = "You have selected gam as a library algorithm but either do not have the gam package installed or it can not be loaded") [ FAIL 7 | WARN 40 | SKIP 6 | PASS 163 ] Error: ! Test failures. Execution halted