Running ‘testthat.R’ [55s/67s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(embed)
  Loading required package: recipes
  Loading required package: dplyr
  
  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
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  > 
  > test_check(package = "embed")
  1 package is needed for this step and is not installed. (xgboost). Start a clean R session then run: install.packages("xgboost")1 package is needed for this step and is not installed. (xgboost). Start a clean R session then run: install.packages("xgboost")══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (12)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_discretize_cart.R:202:3): printing ──────────────────────────────
  Error: there is no package called 'xgboost'
  Backtrace:
       █
    1. ├─testthat::expect_output(prep(cart_rec, verbose = TRUE)) test_discretize_cart.R:202:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(temp, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─recipes::prep(cart_rec, verbose = TRUE)
   11. └─recipes:::prep.recipe(cart_rec, verbose = TRUE)
   12.   ├─recipes::prep(x$steps[[i]], training = training, info = x$term_info)
   13.   └─embed:::prep.step_discretize_xgb(...)
   14.     └─embed:::xgb_binning(...)
   15.       └─xgboost::xgb.DMatrix
   16.         └─base::getExportedValue(pkg, name)
   17.           └─base::asNamespace(ns)
   18.             └─base::getNamespace(ns)
   19.               └─base::loadNamespace(name)
   20.                 └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   21.                   └─base:::withOneRestart(expr, restarts[[1L]])
   22.                     └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_discretize_xgb.R:30:1): (code run outside of `test_that()`) ─────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgb.DMatrix test_discretize_xgb.R:30:0
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 2 | WARN 0 | SKIP 12 | PASS 196 ]
  Error: Test failures
  Execution halted