Running ‘testthat.R’ [37s/39s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidypredict)
  > 
  > test_check("tidypredict")
  [08:31:56] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [08:31:56] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [08:31:56] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [08:31:56] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [08:31:56] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [08:31:56] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [08:31:59] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [08:31:59] WARNING: src/learner.cc:767: 
  Parameters: { "silent" } are not used.
  
  [ FAIL 1 | WARN 1 | SKIP 11 | PASS 105 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (11)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_xgboost.R:24'): Returns the correct type ───────────────────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(split(trees, trees$Tree), get_xgb_tree)`: i In index: 43.
  i With name: 42.
  Caused by error in `map()`:
  i In index: 1.
  Caused by error in `purrr::map2()`:
  ! Can't recycle `.x` (size 0) to match `.y` (size 2).
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(parse_model(xgb_bin_fit), "list") at test_xgboost.R:24:2
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tidypredict::parse_model(xgb_bin_fit)
    5. ├─tidypredict:::parse_model.xgb.Booster(xgb_bin_fit)
    6. │ ├─tidypredict:::get_xgb_trees(model)
    7. │ └─tidypredict:::get_xgb_trees.xgb.Booster(model)
    8. │   └─tidypredict:::get_xgb_trees.character(...)
    9. │     └─purrr::map(split(trees, trees$Tree), get_xgb_tree)
   10. │       └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   11. │         ├─purrr:::with_indexed_errors(...)
   12. │         │ └─base::withCallingHandlers(...)
   13. │         ├─purrr:::call_with_cleanup(...)
   14. │         └─tidypredict (local) .f(.x[[i]], ...)
   15. │           └─purrr::map(...)
   16. │             └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   17. │               ├─purrr:::with_indexed_errors(...)
   18. │               │ └─base::withCallingHandlers(...)
   19. │               ├─purrr:::call_with_cleanup(...)
   20. │               └─tidypredict (local) .f(.x[[i]], ...)
   21. │                 └─tidypredict:::get_xgb_path(.x, tree)
   22. │                   └─purrr::map2(...)
   23. │                     └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
   24. │                       └─vctrs::vec_size_common(.x = .x, .y = .y, .call = .purrr_error_call)
   25. ├─vctrs::stop_incompatible_size(...)
   26. │ └─vctrs:::stop_incompatible(...)
   27. │   └─vctrs:::stop_vctrs(...)
   28. │     └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call))
   29. │       └─rlang:::signal_abort(cnd, .file)
   30. │         └─base::signalCondition(cnd)
   31. ├─purrr (local) `<fn>`(`<vctrs___>`)
   32. │ └─cli::cli_abort(...)
   33. │   └─rlang::abort(...)
   34. │     └─rlang:::signal_abort(cnd, .file)
   35. │       └─base::signalCondition(cnd)
   36. └─purrr (local) `<fn>`(`<prrr_rr_>`)
   37.   └─cli::cli_abort(...)
   38.     └─rlang::abort(...)
  
  [ FAIL 1 | WARN 1 | SKIP 11 | PASS 105 ]
  Error: Test failures
  Execution halted