Running 'testthat.R' [211s/248s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > library(xgboost)
  > library(randomForest)
  randomForest 4.7-1.1
  Type rfNews() to see new features/changes/bug fixes.
  > library(kernlab)
  > library(earth)
  Loading required package: Formula
  Loading required package: plotmo
  Loading required package: plotrix
  Loading required package: TeachingDemos
  > library(thief)
  Loading required package: forecast
  > library(smooth)
  Loading required package: greybox
  Package "greybox", v1.0.6 loaded.
  
  This is package "smooth", v3.1.6
  
  > library(greybox)
  > 
  > library(stats)
  > 
  > 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.2      v workflowsets 1.0.0 
  v purrr        0.3.4      v yardstick    1.1.0 
  -- Conflicts ----------------------------------------- tidymodels_conflicts() --
  x yardstick::accuracy() masks forecast::accuracy()
  x ggplot2::alpha()      masks scales::alpha(), kernlab::alpha()
  x dplyr::combine()      masks randomForest::combine()
  x purrr::cross()        masks kernlab::cross()
  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 ggplot2::margin()     masks randomForest::margin()
  x tidyr::matches()      masks rsample::matches(), dplyr::matches(), testthat::matches()
  x parsnip::pls()        masks smooth::pls()
  x dplyr::slice()        masks xgboost::slice()
  x tidyr::spread()       masks greybox::spread()
  x recipes::step()       masks stats::step()
  * Use tidymodels_prefer() to resolve common conflicts.
  > library(parsnip)
  > library(workflows)
  > library(rsample)
  > library(recipes)
  > library(tune)
  > library(dials)
  > library(TSrepr)
  
  Attaching package: 'TSrepr'
  
  The following objects are masked from 'package:yardstick':
  
      mae, mape, mase, rmse, smape
  
  > library(yardstick)
  > library(slider)
  > 
  > library(timetk)
  > library(modeltime)
  
  Attaching package: 'modeltime'
  
  The following object is masked from 'package:TSrepr':
  
      maape
  
  The following object is masked from 'package:kernlab':
  
      error
  
  > 
  > library(tidyverse)
  -- Attaching packages --------------------------------------- tidyverse 1.3.2 --
  v readr   2.1.3     v forcats 0.5.2
  v stringr 1.4.1     
  -- Conflicts ------------------------------------------ tidyverse_conflicts() --
  x ggplot2::alpha()       masks scales::alpha(), kernlab::alpha()
  x readr::col_factor()    masks scales::col_factor()
  x dplyr::combine()       masks randomForest::combine()
  x purrr::cross()         masks kernlab::cross()
  x purrr::discard()       masks scales::discard()
  x readr::edition_get()   masks testthat::edition_get()
  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 ggplot2::margin()      masks randomForest::margin()
  x tidyr::matches()       masks rsample::matches(), dplyr::matches(), testthat::matches()
  x dplyr::slice()         masks xgboost::slice()
  x readr::spec()          masks yardstick::spec()
  x tidyr::spread()        masks greybox::spread()
  > library(lubridate)
  
  Attaching package: 'lubridate'
  
  The following object is masked from 'package:greybox':
  
      hm
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  > 
  > 
  > test_check("modeltime")
  [ FAIL 2 | WARN 2 | SKIP 22 | PASS 477 ]
  
  == Skipped tests ===============================================================
  * On CRAN (22)
  
  == Failed tests ================================================================
  -- Error (test-nested-modeltime.R:75:1): (code run outside of `test_that()`) ---
  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-modeltime.R:75:0
   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:33:1): (code run outside of `test_that()`) ---------
  Error in `add_model(., svm_rbf() %>% set_engine("kernlab"))`: `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:33: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(., svm_rbf() %>% set_engine("kernlab"))
   8.   \-workflows:::new_action_model(spec, formula)
   9.     \-rlang::abort(message, call = call)
  
  [ FAIL 2 | WARN 2 | SKIP 22 | PASS 477 ]
  Error: Test failures
  Execution halted