Running 'testthat.R' [141s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > # Machine Learning
  > library(tidymodels)
  -- Attaching packages -------------------------------------- tidymodels 0.1.3 --
  v broom        0.7.6      v recipes      0.1.16
  v dials        0.0.9      v rsample      0.0.9 
  v dplyr        1.0.5      v tibble       3.1.1 
  v ggplot2      3.3.3      v tidyr        1.1.3 
  v infer        0.5.4      v tune         0.1.5 
  v modeldata    0.1.0      v workflows    0.2.2 
  v parsnip      0.1.5      v workflowsets 0.0.2 
  v purrr        0.3.4      v yardstick    0.0.8 
  -- 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()
  * Use tidymodels_prefer() to resolve common conflicts.
  > 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-1
  > 
  > # Core Packages
  > library(tidyverse)
  -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
  v readr   1.4.0     v forcats 0.5.1
  v stringr 1.4.0     
  -- Conflicts ------------------------------------------ tidyverse_conflicts() --
  x readr::col_factor() masks scales::col_factor()
  x purrr::discard()    masks scales::discard()
  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 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 (MEDIAN)
  
  # Modeltime Table
  # A tibble: 3 x 3
    .model_id .model     .model_desc            
        <int> <list>     <chr>                  
  1         1 <workflow> ARIMA(0,1,1)(0,1,1)[12]
  2         2 <workflow> PROPHET                
  3         3 <workflow> GLMNET                 
  -- Fitting Non-Tunable Model Specification ----------------------
  
  # A tibble: 4 x 3
    .model_id  rmse .model_desc            
    <chr>     <dbl> <chr>                  
  1 1          579. ARIMA(0,1,1)(0,1,1)[12]
  2 2          381. PROPHET                
  3 3          558. GLMNET                 
  4 ensemble   128. ENSEMBLE (MODEL SPEC)  
  
  -- Final Model --------------------------------------------------
  
  == Workflow [trained] ==========================================================
  Preprocessor: Recipe
  Model: linear_reg()
  
  -- Preprocessor ----------------------------------------------------------------
  0 Recipe Steps
  
  -- Model -----------------------------------------------------------------------
  
  Call:
  stats::lm(formula = ..y ~ ., data = data)
  
  Coefficients:
  (Intercept)  .model_id_1  .model_id_2  .model_id_3  
   -2637.2266       0.5754      -0.1919       0.8550  
  
  
  0.89 sec elapsed
  
  -- Modeltime Ensemble -------------------------------------------
  Ensemble of 3 Models (LM STACK)
  
  # Modeltime Table
  # A tibble: 3 x 3
    .model_id .model     .model_desc            
        <int> <list>     <chr>                  
  1         1 <workflow> ARIMA(0,1,1)(0,1,1)[12]
  2         2 <workflow> PROPHET                
  3         3 <workflow> GLMNET                 
  -- Modeltime Ensemble -------------------------------------------
  Ensemble of 3 Models (GLMNET STACK)
  
  # Modeltime Table
  # A tibble: 3 x 3
    .model_id .model     .model_desc            
        <int> <list>     <chr>                  
  1         1 <workflow> ARIMA(0,1,1)(0,1,1)[12]
  2         2 <workflow> PROPHET                
  3         3 <workflow> GLMNET                 
  -- 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
  == Failed tests ================================================================
  -- Error (test-recursive.R:41:5): recursive ensemble 1 - single / recipe / parsnip --
  Error: more elements supplied than there are to replace
  Backtrace:
      x
   1. +-`%>%`(...) test-recursive.R:41:4
   2. +-modeltime::recursive(...)
   3. \-modeltime.ensemble:::recursive.mdl_time_ensemble(...)
  -- Error (test-recursive.R:169:5): recursive ensemble 2 - panel / function / parsnip + workflow --
  Error: more elements supplied than there are to replace
  Backtrace:
      x
   1. +-`%>%`(...) test-recursive.R:169:4
   2. +-modeltime::recursive(...)
   3. \-modeltime.ensemble:::recursive.mdl_time_ensemble(...)
  
  [ FAIL 2 | WARN 142 | SKIP 0 | PASS 125 ]
  Error: Test failures
  Execution halted