Running ‘testthat.R’ [37s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidypredict)
  > 
  > test_check("tidypredict")
  [08:19:08] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [08:19:08] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [08:19:08] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [08:19:08] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [08:19:08] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [08:19:08] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [08:19:11] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [08:19:11] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [ FAIL 1 | WARN 1 | SKIP 11 | PASS 105 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (11)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_xgboost.R:24'): Returns the correct type ───────────────────────
  Error in `purrr::map(split(trees, trees$Tree), get_xgb_tree)`: i In index: 43.
  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. │         └─tidypredict (local) .f(.x[[i]], ...)
   14. │           └─purrr::map(...)
   15. │             └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   16. │               ├─purrr:::with_indexed_errors(...)
   17. │               │ └─base::withCallingHandlers(...)
   18. │               └─tidypredict (local) .f(.x[[i]], ...)
   19. │                 └─tidypredict:::get_xgb_path(.x, tree)
   20. │                   └─purrr::map2(...)
   21. │                     └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
   22. │                       └─vctrs::vec_size_common(.x = .x, .y = .y, .call = .purrr_error_call)
   23. ├─vctrs::stop_incompatible_size(...)
   24. │ └─vctrs:::stop_incompatible(...)
   25. │   └─vctrs:::stop_vctrs(...)
   26. │     └─rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call))
   27. │       └─rlang:::signal_abort(cnd, .file)
   28. │         └─base::signalCondition(cnd)
   29. ├─purrr (local) `<fn>`(`<vctrs___>`)
   30. │ └─cli::cli_abort(c(i = "In index: {i}."), parent = cnd, call = error_call)
   31. │   └─rlang::abort(...)
   32. │     └─rlang:::signal_abort(cnd, .file)
   33. │       └─base::signalCondition(cnd)
   34. └─purrr (local) `<fn>`(`<rlng_rrr>`)
   35.   └─cli::cli_abort(c(i = "In index: {i}."), parent = cnd, call = error_call)
   36.     └─rlang::abort(...)
  
  [ FAIL 1 | WARN 1 | SKIP 11 | PASS 105 ]
  Error: Test failures
  Execution halted