* using log directory 'd:/Rcompile/CRANpkg/local/4.5/forecastHybrid.Rcheck' * using R version 4.5.2 (2025-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'forecastHybrid/DESCRIPTION' ... OK * this is package 'forecastHybrid' version '5.1.20' * 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 'forecastHybrid' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [7s] 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 ... [13s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [82s] ERROR Running 'testthat.R' [81s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(forecastHybrid) # nolint: unused_import_linter Loading required package: forecast Loading required package: thief > library(testthat) > > test_check("forecastHybrid") Saving _problems/test-accuracy-10.R Hybrid forecast model comprised of the following models: auto.arima, ets, thetam, nnetar, tbats ############ auto.arima with weight 0.2 ############ ets with weight 0.2 ############ thetam with weight 0.2 ############ nnetar with weight 0.2 ############ tbats with weight 0.2 Hybrid forecast model comprised of the following models: auto.arima, ets, thetam, nnetar, tbats ############ auto.arima with weight 0.2 ############ ets with weight 0.2 ############ thetam with weight 0.2 ############ nnetar with weight 0.2 ############ tbats with weight 0.2 Saving _problems/test-generics-26.R Saving _problems/test-hybridModel-62.R Saving _problems/test-hybridModel-74.R Saving _problems/test-hybridModel-195.R Saving _problems/test-theta-65.R [ FAIL 6 | WARN 0 | SKIP 2 | PASS 271 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On CRAN (2): 'test-cvts.R:51:1', 'test-forecast.hybridModel.R:25:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-accuracy.R:10:3'): Accuracy generic function works ─────────── `accuracy(hm$thetam)` threw an error. Message: no applicable method for 'accuracy' applied to an object of class "c('thetam', 'ets')" Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(accuracy(hm$thetam), NA) at test-accuracy.R:10:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─generics::accuracy(hm$thetam) ── Failure ('test-generics.R:26:3'): Testing generics is.hybridModel(), fitted(), residuals(), and accuracy() ── `accuracy(exampleModel, individual = TRUE)` threw an error. Message: no applicable method for 'accuracy' applied to an object of class "c('thetam', 'ets')" Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-generics.R:26:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─generics::accuracy(exampleModel, individual = TRUE) 7. └─forecastHybrid:::accuracy.hybridModel(exampleModel, individual = TRUE) 8. └─forecast::accuracy(object[[model]]) ── Error ('test-hybridModel.R:62:3'): Testing for warnings ───────────────────── Error in `UseMethod("accuracy")`: no applicable method for 'accuracy' applied to an object of class "c('thetam', 'ets')" Backtrace: ▆ 1. ├─testthat::expect_warning(hybridModel(ts(1:20, f = 2), weight = "insample.errors")) at test-hybridModel.R:62:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─forecastHybrid::hybridModel(ts(1:20, f = 2), weight = "insample.errors") 7. └─base::sapply(expandedModels, weightFunction) 8. └─base::lapply(X = X, FUN = FUN, ...) 9. └─forecastHybrid (local) FUN(X[[i]], ...) 10. └─generics::accuracy(modResults[[getModelName(x)]]) ── Error ('test-hybridModel.R:73:3'): Testing valid inputs ───────────────────── Error in `UseMethod("accuracy")`: no applicable method for 'accuracy' applied to an object of class "c('thetam', 'ets')" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-hybridModel.R:73:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─forecastHybrid::hybridModel(inputSeries, models = "aensft", weights = "insample.errors") 7. └─base::sapply(expandedModels, weightFunction) 8. └─base::lapply(X = X, FUN = FUN, ...) 9. └─forecastHybrid (local) FUN(X[[i]], ...) 10. └─generics::accuracy(modResults[[getModelName(x)]]) ── Error ('test-hybridModel.R:194:7'): Testing the weighting methods ─────────── Error in `UseMethod("accuracy")`: no applicable method for 'accuracy' applied to an object of class "c('thetam', 'ets')" Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-hybridModel.R:194:7 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─forecastHybrid::hybridModel(inputSeries, models = models, weights = weight) 7. └─base::sapply(expandedModels, weightFunction) 8. └─base::lapply(X = X, FUN = FUN, ...) 9. └─forecastHybrid (local) FUN(X[[i]], ...) 10. └─generics::accuracy(modResults[[getModelName(x)]]) ── Failure ('test-theta.R:65:3'): Generic `forecast` methods work on thetam objects ── `accuracy(mod1)` threw an error. Message: no applicable method for 'accuracy' applied to an object of class "c('thetam', 'ets')" Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(accuracy(mod1), NA) at test-theta.R:65:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─generics::accuracy(mod1) [ FAIL 6 | WARN 0 | SKIP 2 | PASS 271 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [119s] OK * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR