- using R version 4.4.3 (2025-02-28 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'modeltime.ensemble/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'modeltime.ensemble' version '1.1.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'modeltime.ensemble' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [8s] OK
- checking whether the package can be loaded with stated dependencies ... [8s] OK
- checking whether the package can be unloaded cleanly ... [7s] OK
- checking whether the namespace can be loaded with stated dependencies ... [8s] OK
- checking whether the namespace can be unloaded cleanly ... [8s] OK
- checking loading without being on the library search path ... [9s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [20s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [11s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [81s] ERROR
Running 'testthat.R' [80s]
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.11 ✔ 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [96s] OK
- checking PDF version of manual ... [17s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR