Running ‘testthat.R’ [230s/286s]
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 ──
  ✔ 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.1 
  ✔ modeldata    1.0.1      ✔ workflows    1.1.0 
  ✔ parsnip      1.0.2      ✔ workflowsets 1.0.0 
  ✔ purrr        0.3.5      ✔ yardstick    1.1.0 
  ── Conflicts ───────────────────────────────────────── tidymodels_conflicts() ──
  ✖ yardstick::accuracy() masks forecast::accuracy()
  ✖ ggplot2::alpha()      masks scales::alpha(), kernlab::alpha()
  ✖ dplyr::combine()      masks randomForest::combine()
  ✖ purrr::cross()        masks kernlab::cross()
  ✖ purrr::discard()      masks scales::discard()
  ✖ dplyr::filter()       masks stats::filter()
  ✖ purrr::is_null()      masks testthat::is_null()
  ✖ dplyr::lag()          masks stats::lag()
  ✖ ggplot2::margin()     masks randomForest::margin()
  ✖ tidyr::matches()      masks rsample::matches(), dplyr::matches(), testthat::matches()
  ✖ parsnip::pls()        masks smooth::pls()
  ✖ dplyr::slice()        masks xgboost::slice()
  ✖ tidyr::spread()       masks greybox::spread()
  ✖ recipes::step()       masks stats::step()
  • Dig deeper into tidy modeling with R at https://www.tmwr.org
  > 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 ──
  ✔ readr   2.1.3     ✔ forcats 0.5.2
  ✔ stringr 1.4.1     
  ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
  ✖ ggplot2::alpha()       masks scales::alpha(), kernlab::alpha()
  ✖ readr::col_factor()    masks scales::col_factor()
  ✖ dplyr::combine()       masks randomForest::combine()
  ✖ purrr::cross()         masks kernlab::cross()
  ✖ purrr::discard()       masks scales::discard()
  ✖ readr::edition_get()   masks testthat::edition_get()
  ✖ 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()
  ✖ ggplot2::margin()      masks randomForest::margin()
  ✖ tidyr::matches()       masks rsample::matches(), dplyr::matches(), testthat::matches()
  ✖ dplyr::slice()         masks xgboost::slice()
  ✖ readr::spec()          masks yardstick::spec()
  ✖ 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'): (code run outside of `test_that()`) ───
  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-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'): (code run outside of `test_that()`) ─────────
  Error in `add_model(., svm_rbf() %>% set_engine("kernlab"))`: `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: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