Skip to content

forecast

Forecasting Functions for Time Series and Linear Models

v9.0.1 · Feb 14, 2026 · GPL-3

Description

Methods and tools for displaying and analysing univariate time series forecasts including exponential smoothing via state space models and automatic ARIMA modelling.

Downloads

439.1K

Last 30 days

146th

439.1K

Last 90 days

439.1K

Last year

CRAN Check Status

1 ERROR
2 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang ERROR
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
ERROR r-devel-linux-x86_64-fedora-clang

tests

  Running ‘testthat.R’ [9m/20m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(forecast)
  > 
  > test_check("forecast")
  Saving _problems/test-clean-10.R
  Saving _problems/test-clean-20.R
  Saving _problems/test-season-86.R
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 824 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-bats.R:16:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-clean.R:10:3'): tests for na.interp ──────────────────────────
  Expected `sum(abs(na.interp(testseries) - rep(1:7, 5))) < 1e-12` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-clean.R:20:3'): tests for tsclean ────────────────────────────
  Expected `sum(abs(tsclean(testseries) - rep(1:7, 5))) < 1e-12` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-season.R:86:3'): tests for stlf ──────────────────────────────
  Expected `c(stlf(y)$mean)` to equal `rep(1:7, 2)`.
  Differences:
       actual | expected               
   [1] 0.9809 - 1.0000   [1]           
   [2] 1.9828 - 2.0000   [2]           
   [3] 2.9846 - 3.0000   [3]           
   [4] 3.9864 - 4.0000   [4]           
   [5] 4.9884 - 5.0000   [5]           
   [6] 5.9901 - 6.0000   [6]           
   [7] 6.9920 - 7.0000   [7]           
   [8] 0.9742 - 1.0000   [8]           
   [9] 1.9772 - 2.0000   [9]           
  [10] 2.9800 - 3.0000   [10]          
   ... ...      ...      and 4 more ...
  
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 824 ]
  Error:
  ! Test failures.
  Execution halted
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

installed package size

  installed size is  5.2Mb
  sub-directories of 1Mb or more:
    libs   3.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is  5.3Mb
  sub-directories of 1Mb or more:
    libs   3.6Mb
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-fedora-clang

tests

  Running ‘testthat.R’ [9m/20m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(forecast)
  > 
  > test_check("forecast")
  Saving _problems/test-clean-10.R
  Saving _problems/test-clean-20.R
  Saving _problems/test-season-86.R
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 824 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-bats.R:16:3'
  
  ══ Failed tests ════════════════════════════════════
NOTE r-oldrel-macos-arm64

installed package size

  installed size is  5.2Mb
  sub-directories of 1Mb or more:
    libs   3.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is  5.3Mb
  sub-directories of 1Mb or more:
    libs   3.6Mb

Reverse Dependencies (203)

Dependency Network

Dependencies Reverse dependencies colorspace fracdiff generics ggplot2 lmtest magrittr nnet Rcpp timeDate urca withr zoo ARIMAANN BayesARIMAX DIMORA Dowd ECTTDNN EMDANNhybrid MAPA Mcomp Rlgt Rssa StMoMo THETASVM TSSVM ZRA demography +188 more reverse deps forecast

Version History

new 9.0.1 Mar 9, 2026