Last updated on 2026-01-20 23:50:38 CET.
| Package | ERROR | OK |
|---|---|---|
| forecastHybrid | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 5.1.20
Check: tests
Result: ERROR
Running ‘testthat.R’ [56s/66s]
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-patched-linux-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.