Running ‘testthat.R’ [122s/152s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > # Machine Learning
  > library(tidymodels)
  ── Attaching packages ────────────────────────────────────── tidymodels 1.0.0 ──
  ✔ broom        1.0.1      ✔ recipes      1.0.1 
  ✔ dials        1.0.0      ✔ rsample      1.1.0 
  ✔ dplyr        1.0.10     ✔ tibble       3.1.8 
  ✔ ggplot2      3.3.6      ✔ tidyr        1.2.1 
  ✔ infer        1.0.3      ✔ tune         1.0.0 
  ✔ modeldata    1.0.1      ✔ workflows    1.1.0 
  ✔ parsnip      1.0.2      ✔ workflowsets 1.0.0 
  ✔ purrr        0.3.4      ✔ yardstick    1.1.0 
  ── Conflicts ───────────────────────────────────────── tidymodels_conflicts() ──
  ✖ purrr::discard() masks scales::discard()
  ✖ dplyr::filter()  masks stats::filter()
  ✖ purrr::is_null() masks testthat::is_null()
  ✖ dplyr::lag()     masks stats::lag()
  ✖ tidyr::matches() masks rsample::matches(), dplyr::matches(), testthat::matches()
  ✖ recipes::step()  masks stats::step()
  • Learn how to get started at https://www.tidymodels.org/start/
  > 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 ──
  ✔ readr   2.1.3     ✔ forcats 0.5.2
  ✔ stringr 1.4.1     
  ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
  ✖ readr::col_factor()    masks scales::col_factor()
  ✖ purrr::discard()       masks scales::discard()
  ✖ readr::edition_get()   masks testthat::edition_get()
  ✖ Matrix::expand()       masks tidyr::expand()
  ✖ dplyr::filter()        masks stats::filter()
  ✖ stringr::fixed()       masks recipes::fixed()
  ✖ purrr::is_null()       masks testthat::is_null()
  ✖ dplyr::lag()           masks stats::lag()
  ✖ readr::local_edition() masks testthat::local_edition()
  ✖ tidyr::matches()       masks rsample::matches(), dplyr::matches(), testthat::matches()
  ✖ Matrix::pack()         masks tidyr::pack()
  ✖ xgboost::slice()       masks dplyr::slice()
  ✖ readr::spec()          masks yardstick::spec()
  ✖ 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 × 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.
  ℹ Set the mode of `spec` by using `parsnip::set_mode()` or by setting the mode directly in the parsnip specification function.
  Backtrace:
      ▆
   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.
  ℹ Set the mode of `spec` by using `parsnip::set_mode()` or by setting the mode directly in the parsnip specification function.
  Backtrace:
      ▆
   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