Skip to content

FoReco

1.3.1Package record

Forecast Reconciliation

2packages depend
6.2Kdownloads / year
54.8%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.3.1
  • 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()) with anyNA().
  • Internal helpers, S3 methods underlying the generics (e.g. the cscov(), tecov() and ctcov() methods) and the soft-deprecated res2matrix() are no longer listed in help(package = "FoReco"), so the help index now exposes only the user-facing functions.
  • Fixed the single-column name produced by as.data.frame() on a foreco object, which now uses the name of the object supplied by the user.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.4 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.3.1
READMEYes · 317 wordsVignettesNoNEWSYes · 100% structured · mentions 1.3.1Citation fileYes · cites a publicationWebsiteYes · pkgdown

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

6.2K
CRAN downloads in the past year
Rank #4,938 · ~17/day · ~518/mo
Daily download trend is not available in this view yet.
73230 days
1.7K90 days
6.2K1 year
Compare downloads with other packages →
Also on144 r2u4 autocran155 c2d4u

Repository

41Stars
8Forks
4Open issues
0Open PRs
13Releases
156Commits
3Commit identities
forecastingreconciliationrcrantime-series
156 commits · Last activity 2026-07-13 · +2.5% stars, 30d · Default branch at 1.3.1.9000, ahead of CRAN 1.3.1 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2025-08-14 · 362026-10-21 · 41
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-13

pkgdown site last built 2026-07-08, before release 1.3.1 (2026-07-09)

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

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.

Depends (2)
R >= 3.4Matrix
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Depends 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 0.1.0 (2020)
Contributor · added in 1.2.0
Releases (14)

Pick two releases to compare their code metrics.

  • 1.3.1Latest
    record
    2026-07-09 · current release · diff ↗
  • 1.3.0
    record
    2026-06-22 · diff ↗ ·
    removed 3 exports
    FoReco2matrix, new_foreco_info, recoinfo
    added 3 exports
    components, drop_foreco_class, new_foreco_class
  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.1
    record
    2026-04-15 · diff ↗
  • 1.2.0
    record
    2026-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
    record
    2025-06-07 · diff ↗ ·
    added 3 exports
    commat_index, set_bounds, shrink_oasd
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.0
    record
    2024-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, thfrec
    added 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
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.6
    record
    2023-05-16 · diff ↗ ·
    added 7 exports
    FoReco2matrix, agg_ts, arrange_hres, boot_cs, boot_ct, boot_te, residuals_matrix
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.5
    record
    2022-07-04 · diff ↗
  • 0.2.4
    record
    2022-06-16 · diff ↗ ·
    added 1 export
    lcmat
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.2
    record
    2022-02-17 · diff ↗ ·
    removed 2 exports
    srref, ut2c
  • 0.2.1
    record
    2021-07-23 · diff ↗
Show 5 earlier eventsHide 5 earlier events
  • 0.2.0
    record
    2021-05-21 · diff ↗ ·
    added 5 exports
    lccrec, oct_bounds, srref, tdrec, ut2c
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.1
    record
    2020-10-18 · diff ↗
  • 0.1.0
    record
    2020-10-01
  • R
    R 4.0.0 released · 2020-04-24

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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for FoReco version 1.3.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy