Running ‘testthat.R’ [119s/483s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > # Machine Learning
  > library(tidymodels)
  ── Attaching packages ────────────────────────────────────── tidymodels 1.4.1 ──
  ✔ broom        1.0.10     ✔ recipes      1.3.1 
  ✔ dials        1.4.2      ✔ rsample      1.3.1 
  ✔ dplyr        1.1.4      ✔ tailor       0.1.0 
  ✔ ggplot2      4.0.1      ✔ tidyr        1.3.1 
  ✔ infer        1.0.9      ✔ tune         2.0.1 
  ✔ modeldata    1.5.1      ✔ workflows    1.3.0 
  ✔ parsnip      1.4.0      ✔ workflowsets 1.1.1 
  ✔ purrr        1.2.0      ✔ yardstick    1.3.2 
  ── Conflicts ───────────────────────────────────────── tidymodels_conflicts() ──
  ✖ purrr::discard() masks scales::discard()
  ✖ dplyr::filter()  masks stats::filter()
  ✖ dplyr::lag()     masks stats::lag()
  ✖ recipes::step()  masks stats::step()
  > library(modeltime)
  > library(modeltime.ensemble)
  Loading required package: modeltime.resample
  > library(modeltime.resample)
  > 
  > # Model dependencies
  > library(xgboost)
  > library(glmnet)
  Loading required package: Matrix
  
  Attaching package: 'Matrix'
  
  The following objects are masked from 'package:tidyr':
  
      expand, pack, unpack
  
  Loaded glmnet 4.1-10
  > 
  > # Core Packages
  > 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
  
  
  
  
  
  
  
  
  Saving _problems/test-panel-data-25.R
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 61 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-conf_by_id.R:6:5', 'test-ensemble_average.R:57:5',
    'test-ensemble_model_spec.R:55:5', 'test-nested-ensembles.R:189:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-panel-data.R:16:1'): (code run outside of `test_that()`) ───────
  Error in `switch(object$params$objective, `reg:linear` = , `reg:logistic` = , `binary:logistic` = res, `binary:logitraw` = stats::binomial()$linkinv(res), `multi:softprob` = matrix(res, ncol = object$params$num_class, byrow = TRUE), res)`: EXPR must be a length 1 vector
  Backtrace:
       ▆
    1. ├─... %>% fit(data_set) at test-panel-data.R:16:1
    2. ├─generics::fit(., data_set)
    3. ├─workflows:::fit.workflow(., data_set)
    4. │ └─workflows::.fit_model(workflow, control)
    5. │   ├─generics::fit(action_model, workflow = workflow, control = control)
    6. │   └─workflows:::fit.action_model(...)
    7. │     └─workflows:::fit_from_xy(spec, mold, case_weights, control_parsnip)
    8. │       ├─generics::fit_xy(...)
    9. │       └─parsnip::fit_xy.model_spec(...)
   10. │         └─parsnip:::xy_xy(...)
   11. │           └─parsnip:::eval_mod(...)
   12. │             └─rlang::eval_tidy(e, env = envir, ...)
   13. └─modeltime::prophet_xgboost_fit_impl(...)
   14.   └─modeltime::xgboost_predict(fit_xgboost, newdata = xreg_tbl)
  
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 61 ]
  Error:
  ! Test failures.
  Execution halted