Running ‘testthat.R’ [18s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  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-estimate_erf-22.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
  Saving _problems/test-estimate_gps-29.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
  Saving _problems/test-generate_pseudo_pop-35.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
  Saving _problems/test-trim_it-34.R
  [ FAIL 4 | WARN 200 | SKIP 19 | PASS 68 ]
  
  ══ Skipped tests (19) ══════════════════════════════════════════════════════════
  • On CRAN (17): 'test-CausalGPS_smooth.R:3:4', 'test-absolute_corr_fun.R:4:3',
    'test-absolute_weighted_corr_fun.R:4:3', 'test-check_covar_balance.R:2:1',
    'test-check_kolmogorov_smirnov.R:2:3', 'test-compile_pseudo_pop.R:3:3',
    'test-compute_density.R:3:3', 'test-compute_minmax.R:3:3',
    'test-compute_resid.R:3:3', 'test-create_weighting.R:3:3',
    'test-estimate_gps.R:63:3', 'test-estimate_gps.R:92:3',
    'test-estimate_hat_vals.R:3:3', 'test-matching_fn.R:3:3',
    'test-set_logger.R:3:5', 'test-train_it.R:3:3', 'test-train_it.R:18:3'
  • empty test (2): 'test-estimate_npmetric_erf.R:1:1',
    'test-estimate_npmetric_erf.R:89:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-estimate_erf.R:19:3'): estimate erf works as expected ──────────
  Error in `SuperLearner::SuperLearner(Y = target, X = data.frame(input), SL.library = sl_lib_internal)`: All algorithms dropped from library
  Backtrace:
      ▆
   1. └─CausalGPS::estimate_gps(...) at test-estimate_erf.R:19:3
   2.   └─CausalGPS:::train_it(...)
   3.     └─SuperLearner::SuperLearner(...)
  ── Error ('test-estimate_gps.R:26:3'): estimate_gps works as expected. ─────────
  Error in `SuperLearner::SuperLearner(Y = target, X = data.frame(input), SL.library = sl_lib_internal)`: All algorithms dropped from library
  Backtrace:
      ▆
   1. └─CausalGPS::estimate_gps(...) at test-estimate_gps.R:26:3
   2.   └─CausalGPS:::train_it(...)
   3.     └─SuperLearner::SuperLearner(...)
  ── Error ('test-generate_pseudo_pop.R:31:3'): generate_pseudo_pop works as expected. ──
  Error in `SuperLearner::SuperLearner(Y = target, X = data.frame(input), SL.library = sl_lib_internal)`: All algorithms dropped from library
  Backtrace:
      ▆
   1. └─CausalGPS::estimate_gps(...) at test-generate_pseudo_pop.R:31:3
   2.   └─CausalGPS:::train_it(...)
   3.     └─SuperLearner::SuperLearner(...)
  ── Error ('test-trim_it.R:31:3'): trim_it works as expected ────────────────────
  Error in `SuperLearner::SuperLearner(Y = target, X = data.frame(input), SL.library = sl_lib_internal)`: All algorithms dropped from library
  Backtrace:
      ▆
   1. └─CausalGPS::estimate_gps(...) at test-trim_it.R:31:3
   2.   └─CausalGPS:::train_it(...)
   3.     └─SuperLearner::SuperLearner(...)
  
  [ FAIL 4 | WARN 200 | SKIP 19 | PASS 68 ]
  Error:
  ! Test failures.
  Execution halted