Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rules)
  Loading required package: parsnip
  > 
  > test_check("rules")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  [ FAIL 6 | WARN 0 | SKIP 33 | PASS 17 ]
  
  ══ Skipped tests (33) ══════════════════════════════════════════════════════════
  • On CRAN (32): 'test-c5.R:4:3', 'test-c5.R:43:3', 'test-c5.R:87:3',
    'test-c5.R:127:3', 'test-c5.R:167:3', 'test-c5.R:213:3', 'test-c5.R:255:3',
    'test-c5.R:282:3', 'test-c5.R:362:3', 'test-cubist.R:4:3',
    'test-cubist.R:79:3', 'test-cubist.R:137:3', 'test-cubist.R:180:3',
    'test-cubist.R:218:3', 'test-cubist.R:257:3', 'test-cubist.R:295:3',
    'test-cubist.R:356:3', 'test-cubist.R:403:3', 'test-cubist.R:445:3',
    'test-cubist.R:484:3', 'test-cubist.R:531:3', 'test-cubist.R:584:3',
    'test-cubist.R:617:3', 'test-rule-fit-binomial.R:6:3',
    'test-rule-fit-binomial.R:91:3', 'test-rule-fit-binomial.R:177:3',
    'test-rule-fit-multinomial.R:6:3', 'test-rule-fit-multinomial.R:94:3',
    'test-rule-fit-multinomial.R:181:3', 'test-rule-fit-regression.R:6:3',
    'test-rule-fit-regression.R:62:3', 'test-rule-fit-regression.R:118:3'
  • xrf cannot be loaded (1): 'test-rule-fit-binomial.R:214:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-rule-fit-regression.R:176:3'): early stopping works in xrf_fit ──
  `rf_fit_1 <- fit(rf_mod_1, mpg ~ ., data = mtcars)` threw an unexpected error.
  Message: This engine requires some package installs: 'xrf'
  Class:   rlang_error/error/condition
  Backtrace:
       ▆
    1. ├─rules:::expect_error_free(...) at test-rule-fit-regression.R:176:3
    2. │ └─testthat::expect_error(..., regexp = NA) at tests/testthat/helpers.R:97:3
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─generics::fit(rf_mod_1, mpg ~ ., data = mtcars)
    9. └─parsnip::fit.model_spec(rf_mod_1, mpg ~ ., data = mtcars)
   10.   └─parsnip:::check_installs(object)
   11.     └─rlang::abort(...)
  ── Failure ('test-rule-fit-regression.R:180:3'): early stopping works in xrf_fit ──
  `rf_fit_2 <- fit(rf_mod_2, mpg ~ ., data = mtcars)` threw an unexpected error.
  Message: This engine requires some package installs: 'xrf'
  Class:   rlang_error/error/condition
  Backtrace:
       ▆
    1. ├─rules:::expect_error_free(...) at test-rule-fit-regression.R:180:3
    2. │ └─testthat::expect_error(..., regexp = NA) at tests/testthat/helpers.R:97:3
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─generics::fit(rf_mod_2, mpg ~ ., data = mtcars)
    9. └─parsnip::fit.model_spec(rf_mod_2, mpg ~ ., data = mtcars)
   10.   └─parsnip:::check_installs(object)
   11.     └─rlang::abort(...)
  ── Error ('test-rule-fit-regression.R:184:3'): early stopping works in xrf_fit ──
  Error in `check_installs(object)`: This engine requires some package installs: 'xrf'
  Backtrace:
      ▆
   1. ├─base::suppressMessages(rf_fit_3 <- fit(rf_mod_3, mpg ~ ., data = mtcars))
   2. │ └─base::withCallingHandlers(...)
   3. ├─generics::fit(rf_mod_3, mpg ~ ., data = mtcars)
   4. └─parsnip::fit.model_spec(rf_mod_3, mpg ~ ., data = mtcars)
   5.   └─parsnip:::check_installs(object)
   6.     └─rlang::abort(...)
  ── Failure ('test-rule-fit-regression.R:201:3'): xrf_fit is sensitive to glm_control ──
  `rf_fit_1 <- fit(rf_mod, mpg ~ ., data = mtcars)` threw an unexpected error.
  Message: This engine requires some package installs: 'xrf'
  Class:   rlang_error/error/condition
  Backtrace:
       ▆
    1. ├─rules:::expect_error_free(rf_fit_1 <- fit(rf_mod, mpg ~ ., data = mtcars)) at test-rule-fit-regression.R:201:3
    2. │ └─testthat::expect_error(..., regexp = NA) at tests/testthat/helpers.R:97:3
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─generics::fit(rf_mod, mpg ~ ., data = mtcars)
    9. └─parsnip::fit.model_spec(rf_mod, mpg ~ ., data = mtcars)
   10.   └─parsnip:::check_installs(object)
   11.     └─rlang::abort(...)
  ── Error ('test-rule-fit-regression.R:205:3'): xrf_fit is sensitive to glm_control ──
  Error in `eval(code, test_env)`: object 'rf_fit_1' not found
  Backtrace:
      ▆
   1. └─rlang::call_args(rf_fit_1$fit$glm$model$call) at test-rule-fit-regression.R:205:3
   2.   └─rlang::is_quosure(call)
  ── Error ('test-rule-fit-regression.R:217:3'): xrf_fit guards xgb_control ──────
  Error in `check_installs(object)`: This engine requires some package installs: 'xrf'
  Backtrace:
      ▆
   1. ├─base::suppressMessages(fit(rf_mod, mpg ~ ., data = mtcars))
   2. │ └─base::withCallingHandlers(...)
   3. ├─generics::fit(rf_mod, mpg ~ ., data = mtcars)
   4. └─parsnip::fit.model_spec(rf_mod, mpg ~ ., data = mtcars)
   5.   └─parsnip:::check_installs(object)
   6.     └─rlang::abort(...)
  
  [ FAIL 6 | WARN 0 | SKIP 33 | PASS 17 ]
  Error: Test failures
  Execution halted