Running 'testthat.R' [136s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > # Machine Learning
  > library(tidymodels)
  -- Attaching packages -------------------------------------- tidymodels 1.0.0 --
  v broom        1.0.1      v recipes      1.0.1 
  v dials        1.0.0      v rsample      1.1.0 
  v dplyr        1.0.10     v tibble       3.1.8 
  v ggplot2      3.3.6      v tidyr        1.2.1 
  v infer        1.0.3      v tune         1.0.0 
  v modeldata    1.0.1      v workflows    1.1.0 
  v parsnip      1.0.1      v workflowsets 1.0.0 
  v purrr        0.3.4      v yardstick    1.1.0 
  -- Conflicts ----------------------------------------- tidymodels_conflicts() --
  x purrr::discard() masks scales::discard()
  x dplyr::filter()  masks stats::filter()
  x purrr::is_null() masks testthat::is_null()
  x dplyr::lag()     masks stats::lag()
  x tidyr::matches() masks rsample::matches(), dplyr::matches(), testthat::matches()
  x recipes::step()  masks stats::step()
  * Search for functions across packages at https://www.tidymodels.org/find/
  > library(modeltime)
  > library(modeltime.ensemble)
  Loading required package: modeltime.resample
  > library(modeltime.resample)
  > 
  > # Model dependencies
  > library(xgboost)
  
  Attaching package: 'xgboost'
  
  The following object is masked from 'package:dplyr':
  
      slice
  
  > library(earth)
  Loading required package: Formula
  Loading required package: plotmo
  Loading required package: plotrix
  
  Attaching package: 'plotrix'
  
  The following object is masked from 'package:scales':
  
      rescale
  
  Loading required package: TeachingDemos
  > library(glmnet)
  Loading required package: Matrix
  
  Attaching package: 'Matrix'
  
  The following objects are masked from 'package:tidyr':
  
      expand, pack, unpack
  
  Loaded glmnet 4.1-4
  > 
  > # Core Packages
  > library(tidyverse)
  -- Attaching packages --------------------------------------- tidyverse 1.3.2 --
  v readr   2.1.2     v forcats 0.5.2
  v stringr 1.4.1     
  -- Conflicts ------------------------------------------ tidyverse_conflicts() --
  x readr::col_factor()    masks scales::col_factor()
  x purrr::discard()       masks scales::discard()
  x readr::edition_get()   masks testthat::edition_get()
  x Matrix::expand()       masks tidyr::expand()
  x dplyr::filter()        masks stats::filter()
  x stringr::fixed()       masks recipes::fixed()
  x purrr::is_null()       masks testthat::is_null()
  x dplyr::lag()           masks stats::lag()
  x readr::local_edition() masks testthat::local_edition()
  x tidyr::matches()       masks rsample::matches(), dplyr::matches(), testthat::matches()
  x Matrix::pack()         masks tidyr::pack()
  x xgboost::slice()       masks dplyr::slice()
  x readr::spec()          masks yardstick::spec()
  x Matrix::unpack()       masks tidyr::unpack()
  > library(timetk)
  > library(lubridate)
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  > 
  > test_check("modeltime.ensemble")
  -- Modeltime Ensemble -------------------------------------------
  Ensemble of 3 Models (WEIGHTED)
  
  # Modeltime Table
  # A tibble: 3 x 4
    .model_id .model     .model_desc             .loadings
        <int> <list>     <chr>                       <dbl>
  1         1 <workflow> ARIMA(0,1,1)(0,1,1)[12]     0.5  
  2         2 <workflow> PROPHET                     0.333
  3         3 <workflow> GLMNET                      0.167
  [ FAIL 2 | WARN 16 | SKIP 5 | PASS 52 ]
  
  == Skipped tests ===============================================================
  * On CRAN (5)
  
  == Failed tests ================================================================
  -- Error (test-nested-ensembles.R:56:5): Nested Ensembles Work - sequential ----
  Error in `add_model(., boost_tree())`: `spec` must have a known mode.
  i Set the mode of `spec` by using `parsnip::set_mode()` or by setting the mode directly in the parsnip specification function.
  Backtrace:
      x
   1. +-workflow() %>% add_model(boost_tree()) %>% ... at test-nested-ensembles.R:56:4
   2. +-workflows::add_recipe(., recipe_bad)
   3. | \-workflows:::add_action(x, action, "recipe")
   4. |   \-workflows:::validate_is_workflow(x, call = call)
   5. |     \-workflows:::is_workflow(x)
   6. \-workflows::add_model(., boost_tree())
   7.   \-workflows:::new_action_model(spec, formula)
   8.     \-rlang::abort(message, call = call)
  -- Error (test-panel-data.R:28:1): (code run outside of `test_that()`) ---------
  Error in `add_model(., boost_tree() %>% set_engine("xgboost"))`: `spec` must have a known mode.
  i Set the mode of `spec` by using `parsnip::set_mode()` or by setting the mode directly in the parsnip specification function.
  Backtrace:
      x
   1. +-... %>% fit(data_set) at test-panel-data.R:28:0
   2. +-generics::fit(., data_set)
   3. +-workflows::add_recipe(., recipe_spec %>% step_rm(date))
   4. | \-workflows:::add_action(x, action, "recipe")
   5. |   \-workflows:::validate_is_workflow(x, call = call)
   6. |     \-workflows:::is_workflow(x)
   7. \-workflows::add_model(., boost_tree() %>% set_engine("xgboost"))
   8.   \-workflows:::new_action_model(spec, formula)
   9.     \-rlang::abort(message, call = call)
  
  [ FAIL 2 | WARN 16 | SKIP 5 | PASS 52 ]
  Error: Test failures
  Execution halted