Running 'spelling.R' [0s]
  Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rules)
  Loading required package: parsnip
  > 
  > test_check("rules")
  -- 1. Failure: non-formula method (@test-c5.R#97)  -----------------------------
  `c5_fit <- fit_xy(c5_mod, x = as.data.frame(ad_mod[, -1]), y = ad_mod$Class)` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    7. parsnip::fit_xy.model_spec(...)
    8. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
    9. parsnip:::allow_sparse(model)
   10. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   11. rlang::env_get(mod_env, items)
  
  -- 2. Error: non-formula method (@test-c5.R#101)  ------------------------------
  no applicable method for 'predict' applied to an object of class "function"
  Backtrace:
   1. stats::predict(c5_fit, ad_pred)
  
  -- 3. Failure: non-formula method - control (@test-c5.R#131)  ------------------
  `c5_fit <- fit_xy(c5_mod, x = as.data.frame(ad_mod[, -1]), y = ad_mod$Class)` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    7. parsnip::fit_xy.model_spec(...)
    8. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
    9. parsnip:::allow_sparse(model)
   10. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   11. rlang::env_get(mod_env, items)
  
  -- 4. Error: non-formula method - control (@test-c5.R#135)  --------------------
  no applicable method for 'predict' applied to an object of class "function"
  Backtrace:
   1. stats::predict(c5_fit, ad_pred)
  
  -- 5. Error: mulit-predict (@test-c5.R#169)  -----------------------------------
  argument "default" is missing, with no default
  Backtrace:
    1. rules::C5_rules(trees = 10)
    1. parsnip::set_engine(., "C5.0", seed = 2)
    9. generics::fit_xy(., x = ad_mod_x[-(1:5), -1], y = ad_mod$Class[-(1:5)])
   11. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   12. parsnip:::allow_sparse(model)
   13. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   14. rlang::env_get(mod_env, items)
  
  [19:02:35] WARNING: amalgamation/../src/learner.cc:516: 
  Parameters: { nrounds, penalty } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [19:02:38] WARNING: amalgamation/../src/learner.cc:516: 
  Parameters: { nrounds } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [19:02:43] WARNING: amalgamation/../src/learner.cc:516: 
  Parameters: { nrounds, penalty } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  -- 6. Failure: non-formula method (@test-rule-fit-binomial.R#114)  -------------
  `rf_fit <- fit_xy(rf_mod, x = ad_mod[, -1], y = ad_mod$Class)` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    7. parsnip::fit_xy.model_spec(rf_mod, x = ad_mod[, -1], y = ad_mod$Class)
    8. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
    9. parsnip:::allow_sparse(model)
   10. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   11. rlang::env_get(mod_env, items)
  
  -- 7. Error: non-formula method (@test-rule-fit-binomial.R#118)  ---------------
  object 'rf_fit' not found
  Backtrace:
   1. stats::predict(rf_fit, ad_pred)
  
  == testthat results  ===========================================================
  [ OK: 45 | SKIPPED: 12 | WARNINGS: 0 | FAILED: 7 ]
  1. Failure: non-formula method (@test-c5.R#97) 
  2. Error: non-formula method (@test-c5.R#101) 
  3. Failure: non-formula method - control (@test-c5.R#131) 
  4. Error: non-formula method - control (@test-c5.R#135) 
  5. Error: mulit-predict (@test-c5.R#169) 
  6. Failure: non-formula method (@test-rule-fit-binomial.R#114) 
  7. Error: non-formula method (@test-rule-fit-binomial.R#118) 
  
  Error: testthat unit tests failed
  Execution halted