CRAN Package Check Results for Package forecastHybrid

Last updated on 2026-01-12 03:52:28 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 5.1.20 8.15 286.00 294.15 OK
r-devel-linux-x86_64-debian-gcc 5.1.20 6.76 171.02 177.78 ERROR
r-devel-linux-x86_64-fedora-clang 5.1.20 15.00 502.05 517.05 ERROR
r-devel-linux-x86_64-fedora-gcc 5.1.20 15.00 471.32 486.32 ERROR
r-devel-windows-x86_64 5.1.20 11.00 312.00 323.00 OK
r-patched-linux-x86_64 5.1.20 8.66 272.64 281.30 OK
r-release-linux-x86_64 5.1.20 8.56 271.36 279.92 OK
r-release-macos-arm64 5.1.20 OK
r-release-macos-x86_64 5.1.20 5.00 236.00 241.00 OK
r-release-windows-x86_64 5.1.20 11.00 305.00 316.00 OK
r-oldrel-macos-arm64 5.1.20 OK
r-oldrel-macos-x86_64 5.1.20 6.00 245.00 251.00 OK
r-oldrel-windows-x86_64 5.1.20 15.00 428.00 443.00 OK

Check Details

Version: 5.1.20
Check: tests
Result: ERROR Running ‘testthat.R’ [37s/39s] 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 5.1.20
Check: tests
Result: ERROR Running ‘testthat.R’ [109s/252s] 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 5.1.20
Check: tests
Result: ERROR Running ‘testthat.R’ [97s/149s] 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 Flavor: r-devel-linux-x86_64-fedora-gcc