* using log directory 'd:/Rcompile/CRANpkg/local/3.6/modeltime.ensemble.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'modeltime.ensemble/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'modeltime.ensemble' version '0.4.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 * 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [19s] OK * checking Rd files ... 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 ... [9s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [153s] ERROR Running 'testthat.R' [153s] 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.1.0 v dplyr 1.0.6 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 1 1 ARIMA(0,1,1)(0,1,1)[12] 2 2 PROPHET 3 3 GLMNET -- Fitting Non-Tunable Model Specification ---------------------- # A tibble: 4 x 3 .model_id rmse .model_desc 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.94 sec elapsed -- Modeltime Ensemble ------------------------------------------- Ensemble of 3 Models (LM STACK) # Modeltime Table # A tibble: 3 x 3 .model_id .model .model_desc 1 1 ARIMA(0,1,1)(0,1,1)[12] 2 2 PROPHET 3 3 GLMNET -- Modeltime Ensemble ------------------------------------------- Ensemble of 3 Models (GLMNET STACK) # Modeltime Table # A tibble: 3 x 3 .model_id .model .model_desc 1 1 ARIMA(0,1,1)(0,1,1)[12] 2 2 PROPHET 3 3 GLMNET -- Modeltime Ensemble ------------------------------------------- Ensemble of 3 Models (WEIGHTED) # Modeltime Table # A tibble: 3 x 4 .model_id .model .model_desc .loadings 1 1 ARIMA(0,1,1)(0,1,1)[12] 0.5 2 2 PROPHET 0.333 3 3 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [48s] WARNING Error(s) in re-building vignettes: --- re-building 'getting-started-with-modeltime-ensemble.Rmd' using rmarkdown -- Attaching packages -------------------------------------- tidymodels 0.1.3 -- v broom 0.7.6 v recipes 0.1.16 v dials 0.0.9 v rsample 0.1.0 v dplyr 1.0.6 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 dplyr::lag() masks stats::lag() x recipes::step() masks stats::step() * Use tidymodels_prefer() to resolve common conflicts. Loading required package: modeltime.resample -- 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 dplyr::filter() masks stats::filter() x stringr::fixed() masks recipes::fixed() x dplyr::lag() masks stats::lag() x readr::spec() masks yardstick::spec() Using date_var: date frequency = 12 observations per 1 year Disabling weekly seasonality. Run prophet with weekly.seasonality=TRUE to override this. Disabling daily seasonality. Run prophet with daily.seasonality=TRUE to override this. Warning in max(ids, na.rm = TRUE) : no non-missing arguments to max; returning -Inf frequency = 12 observations per 1 year Disabling weekly seasonality. Run prophet with weekly.seasonality=TRUE to override this. Disabling daily seasonality. Run prophet with daily.seasonality=TRUE to override this. Warning in max(ids, na.rm = TRUE) : no non-missing arguments to max; returning -Inf --- finished re-building 'getting-started-with-modeltime-ensemble.Rmd' --- re-building 'recursive-ensembles.Rmd' using rmarkdown Loading required package: modeltime Loading required package: modeltime.resample -- Attaching packages -------------------------------------- tidymodels 0.1.3 -- v broom 0.7.6 v recipes 0.1.16 v dials 0.0.9 v rsample 0.1.0 v dplyr 1.0.6 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 dplyr::lag() masks stats::lag() x recipes::step() masks stats::step() * Use tidymodels_prefer() to resolve common conflicts. 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 Loading required package: Matrix Attaching package: 'Matrix' The following objects are masked from 'package:tidyr': expand, pack, unpack Loaded glmnet 4.1-1 Attaching package: 'xgboost' The following object is masked from 'package:dplyr': slice -- 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 dplyr::lag() masks stats::lag() x Matrix::pack() masks tidyr::pack() x xgboost::slice() masks dplyr::slice() x readr::spec() masks yardstick::spec() x Matrix::unpack() masks tidyr::unpack() Attaching package: 'lubridate' The following objects are masked from 'package:base': date, intersect, setdiff, union .date_var is missing. Using: date Quitting from lines 125-136 (recursive-ensembles.Rmd) Error: processing vignette 'recursive-ensembles.Rmd' failed with diagnostics: more elements supplied than there are to replace --- failed re-building 'recursive-ensembles.Rmd' SUMMARY: processing the following file failed: 'recursive-ensembles.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR, 1 WARNING