{
  "_id": "6acec321d9de2f3f33fc79d0",
  "Package": "foresightr",
  "Title": "Forecasts Chosen by What Would Have Worked",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\"André\", \"Leite\", email = \"leite@castlab.org\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-4718-9766\")),\nperson(\"Marcos\", \"Wasiliew\", email = \"marcos.wasiliew@gmail.com\", role = \"aut\",\ncomment = c(ORCID = \"0009-0004-4694-3159\")),\nperson(\"Hugo\", \"Vasconcelos\", email = \"hugo.vasconcelos@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-6249-0920\")),\nperson(\"Carlos\", \"Amorim\", email = \"carlos.agaf@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-6315-8305\")),\nperson(\"Diogo\", \"Bezerra\", email = \"diogo.bezerra@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-1216-8674\")),\nperson(\"Júlia\", \"Nascimento Barreto\", email = \"juliabarreto@gd.seplag.pe.gov.br\", role = \"aut\",\ncomment = c(ORCID = \"0009-0004-2851-7770\")),\nperson(\"The authors of the dependency Rust crates\", role = \"ctb\",\ncomment = \"see inst/AUTHORS file for details\"))",
  "Description": "Time series forecasting that replays the past before\ntrusting a model: a rolling-origin backtest, Tashman (2000)\n<doi:10.1016/S0169-2070(00)00065-0>, refits every candidate at\neach origin, the choice is made by out-of-sample error, and\nprediction intervals are quantiles of the errors actually\nobserved, for each horizon and for totals of the next periods.\nModels include seasonal ARIMA by exact maximum likelihood with\nautomatic orders, Hyndman and Khandakar (2008)\n<doi:10.18637/jss.v027.i03>; exponential smoothing in state\nspace form, Hyndman, Koehler, Snyder and Grose (2002)\n<doi:10.1016/S0169-2070(01)00110-8>; the Theta method,\nAssimakopoulos and Nikolopoulos (2000)\n<doi:10.1016/S0169-2070(00)00066-2>; a trend with changepoints\nand events in the manner of Taylor and Letham (2018)\n<doi:10.1080/00031305.2017.1380080>; TBATS, De Livera, Hyndman\nand Snyder (2011) <doi:10.1198/jasa.2011.tm09771>;\nseasonal-trend decompositions by LOESS for one or several\nseasonal periods, Bandara, Hyndman and Bergmeir (2021)\n<doi:10.48550/arXiv.2107.13462>; the method of Croston (1972)\n<doi:10.1057/jors.1972.50> for intermittent demand; and\nensembles. The computations are done by the 'Rust' crate\n'foresight', bundled with the package.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/StrategicProjects/foresightr,\nhttps://strategicprojects.github.io/foresightr/",
  "BugReports": "https://github.com/StrategicProjects/foresightr/issues",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "SystemRequirements": "Cargo (Rust's package manager), rustc >= 1.81",
  "VignetteBuilder": "knitr",
  "Config/rextendr/version": "0.5.0",
  "Config/roxygen2/version": "8.0.0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-13 23:41:48 UTC",
    "User": "root"
  },
  "Author": "André Leite [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-4718-9766>), Marcos Wasiliew [aut]\n(ORCID: <https://orcid.org/0009-0004-4694-3159>), Hugo\nVasconcelos [aut] (ORCID:\n<https://orcid.org/0000-0001-6249-0920>), Carlos Amorim [aut]\n(ORCID: <https://orcid.org/0000-0001-6315-8305>), Diogo Bezerra\n[aut] (ORCID: <https://orcid.org/0000-0002-1216-8674>), Júlia\nNascimento Barreto [aut] (ORCID:\n<https://orcid.org/0009-0004-2851-7770>), The authors of the\ndependency Rust crates [ctb] (see inst/AUTHORS file for\ndetails)",
  "Maintainer": "André Leite <leite@castlab.org>",
  "Config/pak/sysreqs": "libclang-dev",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-13 16:07:57 UTC",
  "RemoteUrl": "https://github.com/cran/foresightr",
  "RemoteRef": "HEAD",
  "RemoteSha": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
  "_user": "cran",
  "_type": "src",
  "_file": "foresightr_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/a32866765d33f64519ff8f2838424876bc9ab00a4961246c298d4f7ee2b678f6",
  "_filesize": 1896765,
  "_sha256": "a32866765d33f64519ff8f2838424876bc9ab00a4961246c298d4f7ee2b678f6",
  "_expires": "2027-01-21T23:47:43.000Z",
  "_created": "2026-10-13T23:41:48.000Z",
  "_published": "2026-10-13T23:47:45.146Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115599222923,
      "time": 141,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11860076905"
    },
    {
      "job": 115599222919,
      "time": 165,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11860325085"
    },
    {
      "job": 115599222904,
      "time": 138,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11859961414"
    },
    {
      "job": 115599222950,
      "time": 171,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11860121882"
    },
    {
      "job": 115597982855,
      "time": 224,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11859281284"
    },
    {
      "job": 115599222980,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11860236077"
    },
    {
      "job": 115599222862,
      "time": 296,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11859591825"
    },
    {
      "job": 115599222897,
      "time": 184,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11859427278"
    },
    {
      "job": 115599222929,
      "time": 307,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11859227645"
    },
    {
      "job": 115599222993,
      "time": 201,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11860335038"
    }
  ],
  "_upstream": "https://github.com/cran/foresightr",
  "_commit": {
    "id": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
    "author": "André Leite <leite@castlab.org>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.1\n",
    "time": 1791907677
  },
  "_maintainer": {
    "name": "André Leite",
    "email": "leite@castlab.org",
    "orcid": "0000-0002-4718-9766"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.1",
      "date": "2026-10-13"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/foresightr"
  },
  "_devurl": "https://github.com/strategicprojects/foresightr",
  "_pkgdown": "https://strategicprojects.github.io/foresightr/",
  "_searchresults": 0,
  "_cargo": true,
  "_topics": [
    "rust",
    "cargo"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/foresightr.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2026-10-13"
    }
  ],
  "_exports": [
    "autocorrelations",
    "autoplot",
    "backtest",
    "box_cox",
    "candidates_default",
    "candidates_thorough",
    "clean_series",
    "decompose_mstl",
    "decompose_stl",
    "fill_gaps",
    "find_outliers",
    "fit_model",
    "forecast_model",
    "foresight_threads",
    "fourier_terms",
    "guerrero_lambda",
    "inv_box_cox",
    "kpss_statistic",
    "mae",
    "mape",
    "mase",
    "model_airline",
    "model_arima",
    "model_auto_arima",
    "model_auto_ets",
    "model_box_cox",
    "model_croston",
    "model_decomposed",
    "model_description",
    "model_drift",
    "model_ensemble",
    "model_ets",
    "model_holt_winters",
    "model_log",
    "model_log_linear",
    "model_mean",
    "model_naive",
    "model_name",
    "model_prophet",
    "model_seasonal_naive",
    "model_tbats",
    "model_theta",
    "n_differences",
    "n_seasonal_differences",
    "pct_bias",
    "rmse",
    "seasonal_dummies",
    "seasonal_strength",
    "theme_foresight",
    "total_forecast",
    "with_name"
  ],
  "_help": [
    {
      "page": "autoplot.foresight_backtest",
      "title": "Charts of a backtest or a decomposition",
      "topics": [
        "autoplot.foresight_backtest",
        "autoplot.foresight_decomposition",
        "plot.foresight_backtest",
        "plot.foresight_decomposition"
      ]
    },
    {
      "page": "backtest",
      "title": "Choose a model by what would have worked",
      "topics": [
        "backtest"
      ]
    },
    {
      "page": "candidates_default",
      "title": "Ready sets of candidates",
      "topics": [
        "candidates_default",
        "candidates_thorough"
      ]
    },
    {
      "page": "decompose_stl",
      "title": "Decompose a series by STL or MSTL",
      "topics": [
        "decompose_mstl",
        "decompose_stl"
      ]
    },
    {
      "page": "fill_gaps",
      "title": "Gaps and outliers",
      "topics": [
        "clean_series",
        "fill_gaps",
        "find_outliers"
      ]
    },
    {
      "page": "fit_model",
      "title": "Fit a model and forecast",
      "topics": [
        "fit_model",
        "forecast_model",
        "predict.foresight_fit"
      ]
    },
    {
      "page": "foresight_threads",
      "title": "Threads used by backtests and ensembles",
      "topics": [
        "foresight_threads"
      ]
    },
    {
      "page": "fourier_terms",
      "title": "External variables for a regression with ARIMA errors",
      "topics": [
        "fourier_terms",
        "seasonal_dummies"
      ]
    },
    {
      "page": "kpss_statistic",
      "title": "Tests and transformations",
      "topics": [
        "autocorrelations",
        "box_cox",
        "guerrero_lambda",
        "inv_box_cox",
        "kpss_statistic",
        "n_differences",
        "n_seasonal_differences",
        "seasonal_strength"
      ]
    },
    {
      "page": "mape",
      "title": "Accuracy of forecasts",
      "topics": [
        "mae",
        "mape",
        "mase",
        "pct_bias",
        "rmse"
      ]
    },
    {
      "page": "model_arima",
      "title": "Seasonal ARIMA",
      "concept": [
        "models"
      ],
      "topics": [
        "model_airline",
        "model_arima"
      ]
    },
    {
      "page": "model_auto_arima",
      "title": "ARIMA with automatic orders",
      "concept": [
        "models"
      ],
      "topics": [
        "model_auto_arima"
      ]
    },
    {
      "page": "model_box_cox",
      "title": "A model on the log or Box-Cox scale",
      "concept": [
        "models"
      ],
      "topics": [
        "model_box_cox",
        "model_log"
      ]
    },
    {
      "page": "model_croston",
      "title": "Intermittent demand",
      "concept": [
        "models"
      ],
      "topics": [
        "model_croston"
      ]
    },
    {
      "page": "model_decomposed",
      "title": "Forecast the seasonally adjusted series",
      "concept": [
        "models"
      ],
      "topics": [
        "model_decomposed"
      ]
    },
    {
      "page": "model_ensemble",
      "title": "Several models combined",
      "concept": [
        "models"
      ],
      "topics": [
        "model_ensemble"
      ]
    },
    {
      "page": "model_ets",
      "title": "Exponential smoothing",
      "concept": [
        "models"
      ],
      "topics": [
        "model_auto_ets",
        "model_ets"
      ]
    },
    {
      "page": "model_holt_winters",
      "title": "Holt-Winters",
      "concept": [
        "models"
      ],
      "topics": [
        "model_holt_winters"
      ]
    },
    {
      "page": "model_log_linear",
      "title": "Log-linear regression",
      "concept": [
        "models"
      ],
      "topics": [
        "model_log_linear"
      ]
    },
    {
      "page": "model_mean",
      "title": "Benchmark models",
      "concept": [
        "models"
      ],
      "topics": [
        "model_drift",
        "model_mean",
        "model_naive",
        "model_seasonal_naive"
      ]
    },
    {
      "page": "model_name",
      "title": "Name and description of a model",
      "topics": [
        "model_description",
        "model_name"
      ]
    },
    {
      "page": "model_prophet",
      "title": "Prophet-style trend with changepoints and events",
      "concept": [
        "models"
      ],
      "topics": [
        "model_prophet"
      ]
    },
    {
      "page": "model_tbats",
      "title": "TBATS",
      "concept": [
        "models"
      ],
      "topics": [
        "model_tbats"
      ]
    },
    {
      "page": "model_theta",
      "title": "Theta method",
      "concept": [
        "models"
      ],
      "topics": [
        "model_theta"
      ]
    },
    {
      "page": "theme_foresight",
      "title": "The theme of the package's charts",
      "topics": [
        "theme_foresight"
      ]
    },
    {
      "page": "total_forecast",
      "title": "Forecast of a total",
      "topics": [
        "total_forecast"
      ]
    },
    {
      "page": "with_name",
      "title": "Rename a model",
      "topics": [
        "with_name"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/foresightr/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/cran/foresightr/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "cleaning.Rmd",
      "filename": "cleaning.html",
      "title": "Decomposition and cleaning",
      "engine": "knitr::rmarkdown",
      "headings": [
        "STL",
        "Several seasonal periods",
        "Gaps and outliers"
      ],
      "created": "2026-10-13 16:07:57",
      "modified": "2026-10-13 16:07:57",
      "commits": 1
    },
    {
      "source": "foresightr.Rmd",
      "filename": "foresightr.html",
      "title": "Get started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The data",
        "Choose a model by what would have worked",
        "Totals",
        "One model on its own",
        "Your own candidates",
        "Decomposition"
      ],
      "created": "2026-10-13 16:07:57",
      "modified": "2026-10-13 16:07:57",
      "commits": 1
    },
    {
      "source": "regressors.Rmd",
      "filename": "regressors.html",
      "title": "Regressors and events",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Regression with ARIMA errors",
        "Fourier terms",
        "A deflated regression",
        "Events and steps"
      ],
      "created": "2026-10-13 16:07:57",
      "modified": "2026-10-13 16:07:57",
      "commits": 1
    },
    {
      "source": "backtest.Rmd",
      "filename": "backtest.html",
      "title": "The backtest and its intervals",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Replaying the past",
        "The error by horizon",
        "Intervals from the errors actually made",
        "Totals",
        "Looking at it"
      ],
      "created": "2026-10-13 16:07:57",
      "modified": "2026-10-13 16:07:57",
      "commits": 1
    },
    {
      "source": "models.Rmd",
      "filename": "models.html",
      "title": "The models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Yardsticks",
        "Theta and Holt-Winters",
        "Exponential smoothing",
        "ARIMA",
        "Prophet-style trend",
        "TBATS",
        "Intermittent demand",
        "Combining models",
        "The ready sets"
      ],
      "created": "2026-10-13 16:07:57",
      "modified": "2026-10-13 16:07:57",
      "commits": 1
    }
  ],
  "_score": 3.3979400086720375,
  "_indexed": false,
  "_nocasepkg": "foresightr",
  "_universes": [
    "cran",
    "strategicprojects"
  ],
  "_indexurl": "https://strategicprojects.r-universe.dev/foresightr",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-13T23:43:58.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/14b6bd4300c0e49a6d1edf086c1602acb430413c249a9425290695b7faff43d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-13T23:44:11.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/ae9bbce3094c1b9c5bf596aba6123413e5493a52d3844b54705733cbc6d2f6a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-13T23:43:56.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/153456e98fc98787914950b3f9333cd82e09bd5e542032116d342736da5cbab5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-13T23:44:24.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/e3aa6743843a40805c76e9f172d36a239fcf6a88510e3b2cad08301eceaa7b24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-13T23:44:01.000Z",
      "arch": "emscripten",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/47e2be83419b61c61934bc704e4da59eff7ac8f8e7df578c22d6cfac7e9820fa",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-13T23:45:42.000Z",
      "arch": "aarch64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/328d7282beea342b723c4b42f103eade02907d68881169e3299fc60655dfb46c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-13T23:43:23.000Z",
      "arch": "x86_64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/1198996111ea010d91fe1e0e8553c8059aa706f47b8460e2f129f13e815d931f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-13T23:45:51.000Z",
      "arch": "aarch64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/cdac0c356fff222f83c7ddd45ebaefb35e3721a1045042d6f06a31d0e20f2ff6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-13T23:43:50.000Z",
      "arch": "x86_64",
      "commit": "d9d4565686bc31b56f24039f5f0b79a81ab009c1",
      "fileid": "https://r2.ropensci.org/178850eff949fead60e4fe6fc45397926c8edc5863e45b3bbcea143d59b86d22",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38485444463"
    }
  ]
}