Forecast Reconciliation
Overview
Classical (bottom-up and top-down), optimal combination and heuristic point (Di Fonzo and Girolimetto, 2023 doi:10.1016/j.ijforecast.2021.08.004) and probabilistic (Girolimetto et al. 2024 doi:10.1016/j.ijforecast.2023.10.003) forecast reconciliation procedures for linearly constrained time series (e.g., hierarchical or grouped time series) in cross-sectional, temporal, or cross-temporal frameworks.
- User-facing functions now validate their arguments more strictly and fail with informative error messages that state the expected value and report the one actually supplied, replacing the previous generic diagnostics.
- Replaced
any(is.na())withanyNA(). - Internal helpers, S3 methods underlying the generics (e.g. the
cscov(),tecov()andctcov()methods) and the soft-deprecatedres2matrix()are no longer listed inhelp(package = "FoReco"), so the help index now exposes only the user-facing functions. - Fixed the single-column name produced by
as.data.frame()on aforecoobject, which now uses the name of the object supplied by the user.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-25
- WARNING13 OK, 1 WARNING2026-03-19
- ERROR5 OK, 9 ERROR2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 52 (5 internal)includes a package overview page
- Examples that run
- 100%48 run in a plain check
- Exported functions with examples
- 98%
- Documented parameters
- 99%
- Return-value docs
- 98%
- Help pages citing references
- 67%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/danigiro/foreco on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-13
pkgdown site last built 2026-07-08, before release 1.3.1 (2026-07-09)
Dependencies
Installing FoReco adds 13 packages (8 with compiled code, 5.9 MB of source tarballs). Heaviest: Rcpp 1.8 MB, vctrs 1.0 MB, rlang 766 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.3.1Latest
- 1.3.02026-06-22 · diff ↗ ·
removed 3 exports
FoReco2matrix, new_foreco_info, recoinfoadded 3 exports
components, drop_foreco_class, new_foreco_class - RR 4.6.0 released · 2026-04-24
- 1.2.12026-04-15 · diff ↗
- 1.2.02026-03-12 · diff ↗ ·
added 11 exports
as_ctmatrix, as_hstack_ctlayout, as_hstack_telayout, as_tevector, csmvn, cssmp, ctmvn, ctsmp, new_foreco_info, temvn, tesmp - 1.1.0
- RR 4.5.0 released · 2025-04-11
- 1.0.02024-08-21 · diff ↗ ·
removed 17 exports
Cmatrix, FoReco2ts, agg_ts, boot_cs, boot_ct, boot_te, ctf_tools, hts_tools, htsrec, lccrec, oct_bounds, octrec, residuals_matrix, score_index, tdrec, thf_tools, thfrecadded 32 exports
aggts, balance_hierarchy, csboot, csbu, cscov, cslcc, csmo, csprojmat, csrec, cstd, cstools, ctboot, ctcov, ctlcc, ctmo, ctprojmat, ctrec, cttd, cttools, df2aggmat, recoinfo, res2matrix, teboot, tebu, tecov, telcc, temo, teprojmat, terec, tetd and 2 more - RR 4.4.0 released · 2024-04-24
- 0.2.62023-05-16 · diff ↗ ·
added 7 exports
FoReco2matrix, agg_ts, arrange_hres, boot_cs, boot_ct, boot_te, residuals_matrix - RR 4.3.0 released · 2023-04-21
- 0.2.52022-07-04 · diff ↗
- 0.2.4
- RR 4.2.0 released · 2022-04-22
- 0.2.2
- 0.2.12021-07-23 · diff ↗
Package metadata
- First published
- 2020-10-01
- Total releases
- 14 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.4
- Bundled data
- 701 KB / 7 files
- Download size
- 831 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("FoReco")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.foreco, 10.1016/j.ijforecast.2021.08.004, 10.1016/j.ijforecast.2023.10.003.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.