Running ‘test-all.R’ [9m/36m]
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
  Loading required package: gam
  Loading required package: splines
  Loading required package: foreach
  Loaded gam 1.22-6
  
  Super Learner
  Version: 2.0-29
  Package created on 2024-02-06
  
  Saving _problems/test-g_xgboost-10.R
  Saving _problems/test-g_xgboost-42.R
  Saving _problems/test-g_xgboost-71.R
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = objective, nrounds = ntrees,  : 
    argument "y" is missing, with no default
  Saving _problems/test-q_xgboost-32.R
  [ FAIL 4 | WARN 202 | SKIP 0 | PASS 935 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-g_xgboost.R:7:3'): g_xgboost gives the same result as plain xgboost ──
  <getvarError/missingArgError/error/condition>
  Error in `xgboost::xgboost(data = xgboost_data, max_depth = 2, eta = 1, nrounds = 2, objective = "binary:logistic", verbose = FALSE)`: argument "y" is missing, with no default
  Backtrace:
      ▆
   1. └─xgboost::xgboost(...) at test-g_xgboost.R:7:3
   2.   └─xgboost:::process.y.margin.and.objective(...)
   3.     └─base::NROW(y)
  ── Error ('test-g_xgboost.R:41:3'): g_xgboost gives the same result as SL.xgboost ──
  Error in `process.y.margin.and.objective(y, base_margin, objective, params)`: Got numeric 'y' - supported objectives for this data are: reg:squarederror, reg:squaredlogerror, reg:logistic, reg:pseudohubererror, reg:absoluteerror, reg:quantileerror, count:poisson, reg:gamma, reg:tweedie. Was passed: binary:logistic
  Backtrace:
       ▆
    1. └─polle::fit_g_functions(...) at test-g_xgboost.R:41:3
    2.   └─polle:::fit_g_function(history, g_models)
    3.     └─polle (local) g_model(A = A, H = H, action_set = stage_action_set)
    4.       └─model$estimate(data)
    5.         └─private$fitfun(data, ...)
    6.           ├─base::structure(do.call(private$init.estimate, args), design = summary(xx))
    7.           ├─base::do.call(private$init.estimate, args)
    8.           └─polle (local) `<fn>`(x = `<dbl>`, y = `<dbl>`)
    9.             └─xgboost::xgboost(...)
   10.               └─xgboost:::process.y.margin.and.objective(...)
  ── Error ('test-g_xgboost.R:70:3'): g_xgboost tunes parameters ─────────────────
  Error in `terms.formula(formula)`: '.' in formula and no 'data' argument
  Backtrace:
      ▆
   1. └─polle::fit_g_functions(...) at test-g_xgboost.R:70:3
   2.   └─polle:::fit_g_function(history, g_models)
   3.     └─polle (local) g_model(A = A, H = H, action_set = stage_action_set)
   4.       ├─stats::delete.response(terms(formula))
   5.       ├─stats::terms(formula)
   6.       └─stats::terms.formula(formula)
  ── Error ('test-q_xgboost.R:28:3'): q_xgboost gives the same result as plain xgboost ──
  <getvarError/missingArgError/error/condition>
  Error in `xgboost::xgboost(data = xgboost_data, max_depth = 2, eta = 1, nrounds = 2, verbose = FALSE)`: argument "y" is missing, with no default
  Backtrace:
      ▆
   1. └─xgboost::xgboost(...) at test-q_xgboost.R:28:3
   2.   └─xgboost:::process.y.margin.and.objective(...)
   3.     └─base::NROW(y)
  
  [ FAIL 4 | WARN 202 | SKIP 0 | PASS 935 ]
  Error:
  ! Test failures.
  Execution halted