Last updated on 2026-01-13 04:50:59 CET.
| Package | ERROR | OK |
|---|---|---|
| conformalForecast | 3 | 10 |
Current CRAN status: ERROR: 3, OK: 10
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘conformalForecast-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: accuracy.default
> ### Title: Accuracy measures for a cross-validation model and a conformal
> ### prediction model
> ### Aliases: accuracy.default
>
> ### ** Examples
>
> # Simulate time series from an AR(2) model
> library(forecast)
> series <- arima.sim(n = 200, list(ar = c(0.8, -0.5)), sd = sqrt(1))
>
> # Cross-validation forecasting with a rolling window
> far2 <- function(x, h, level) {
+ Arima(x, order = c(2, 0, 0)) |>
+ forecast(h = h, level)
+ }
> fc <- cvforecast(series, forecastfun = far2, h = 3, level = 95,
+ forward = TRUE, initial = 1, window = 50)
>
> # Out-of-sample forecast accuracy on validation set
> accuracy(fc, measures = point_measures, byhorizon = TRUE)
Error in NextMethod(.Generic) : cannot assign 'tsp' to zero-length vector
Calls: accuracy ... accuracy.forecast -> trainingaccuracy -> Ops.ts -> NextMethod
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘conformalForecast.Rmd’ using rmarkdown
Quitting from conformalForecast.Rmd:68-72 [cvinfo]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `NextMethod()`:
! cannot assign 'tsp' to zero-length vector
---
Backtrace:
▆
1. ├─generics::accuracy(fc, byhorizon = TRUE)
2. └─forecast:::accuracy.forecast(fc, byhorizon = TRUE)
3. └─forecast:::trainingaccuracy(object, test, d, D)
4. ├─stats:::Ops.ts(dx, fits)
5. └─base::NextMethod(.Generic)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'conformalForecast.Rmd' failed with diagnostics:
cannot assign 'tsp' to zero-length vector
--- failed re-building ‘conformalForecast.Rmd’
SUMMARY: processing the following file failed:
‘conformalForecast.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘conformalForecast-Ex.R’ failed
The error most likely occurred in:
> ### Name: accuracy.default
> ### Title: Accuracy measures for a cross-validation model and a conformal
> ### prediction model
> ### Aliases: accuracy.default
>
> ### ** Examples
>
> # Simulate time series from an AR(2) model
> library(forecast)
> series <- arima.sim(n = 200, list(ar = c(0.8, -0.5)), sd = sqrt(1))
>
> # Cross-validation forecasting with a rolling window
> far2 <- function(x, h, level) {
+ Arima(x, order = c(2, 0, 0)) |>
+ forecast(h = h, level)
+ }
> fc <- cvforecast(series, forecastfun = far2, h = 3, level = 95,
+ forward = TRUE, initial = 1, window = 50)
>
> # Out-of-sample forecast accuracy on validation set
> accuracy(fc, measures = point_measures, byhorizon = TRUE)
Error in NextMethod(.Generic) : cannot assign 'tsp' to zero-length vector
Calls: accuracy ... accuracy.forecast -> trainingaccuracy -> Ops.ts -> NextMethod
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘conformalForecast.Rmd’ using rmarkdown
Quitting from conformalForecast.Rmd:68-72 [cvinfo]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `NextMethod()`:
! cannot assign 'tsp' to zero-length vector
---
Backtrace:
▆
1. ├─generics::accuracy(fc, byhorizon = TRUE)
2. └─forecast:::accuracy.forecast(fc, byhorizon = TRUE)
3. └─forecast:::trainingaccuracy(object, test, d, D)
4. ├─stats:::Ops.ts(dx, fits)
5. └─base::NextMethod(.Generic)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'conformalForecast.Rmd' failed with diagnostics:
cannot assign 'tsp' to zero-length vector
--- failed re-building ‘conformalForecast.Rmd’
SUMMARY: processing the following file failed:
‘conformalForecast.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc