Running ‘testthat.R’ [6s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CRE)
  > 
  > test_check("CRE")
  Error in xgboost::xgboost(data = xgmat, objective = "binary:logistic",  : 
    argument "y" is missing, with no default
  Error in xgboost::xgboost(data = xgmat, objective = "binary:logistic",  : 
    argument "y" is missing, with no default
  Saving _problems/test-estimate_cate-165.R
  [ FAIL 1 | WARN 10 | SKIP 25 | PASS 4 ]
  
  ══ Skipped tests (25) ══════════════════════════════════════════════════════════
  • On CRAN (25): 'test-check_input_data.R:3:3', 'test-cre.R:3:3',
    'test-discover_rules.R:3:3', 'test-estimate_cate.R:3:3',
    'test-estimate_ite.R:4:3', 'test-estimate_ite_aipw.R:3:3',
    'test-estimate_ite_bart.R:4:3', 'test-estimate_ite_cf.R:4:3',
    'test-estimate_ite_poisson.R:3:3', 'test-estimate_ite_slearner.R:3:3',
    'test-estimate_ite_tlearner.R:3:3', 'test-estimate_ite_xlearner.R:3:3',
    'test-estimate_ps.R:3:3', 'test-evaluate.R:3:3',
    'test-extract_effect_modifiers.R:2:3', 'test-extract_rules.R:4:3',
    'test-filter_correlated_rules.R:3:3', 'test-filter_extreme_rules.R:3:3',
    'test-filter_irrelevant_rules.R:4:3', 'test-generate_cre_dataset.R:4:3',
    'test-generate_rules.R:3:3', 'test-generate_rules_matrix.R:3:3',
    'test-honest_splitting.R:3:3', 'test-interpret_rules.R:3:3',
    'test-predict.R:3:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-estimate_cate.R:162:3'): CATE Estimation Runs Correctly (test 2/2) ──
  Error in `SuperLearner::SuperLearner(Y = z, X = as.data.frame(X), newX = as.data.frame(X), family = binomial(), SL.library = ps_method, cvControl = list(V = 0))`: All algorithms dropped from library
  Backtrace:
      ▆
   1. └─CRE:::estimate_ite(...) at test-estimate_cate.R:162:3
   2.   └─CRE:::estimate_ite_aipw(y, z, X, learner_ps, learner_y)
   3.     └─CRE:::estimate_ps(z, X, learner_ps)
   4.       └─SuperLearner::SuperLearner(...)
  
  [ FAIL 1 | WARN 10 | SKIP 25 | PASS 4 ]
  Error:
  ! Test failures.
  Execution halted