{
  "_id": "6b01a6f4ba9f688a10124379",
  "Package": "legion",
  "Type": "Package",
  "Title": "Forecasting Using Multivariate Models",
  "Version": "0.2.2.41003",
  "Date": "2025-10-24",
  "Authors@R": "c(person(\"Ivan\", \"Svetunkov\", email = \"ivan@svetunkov.com\", role = c(\"aut\", \"cre\"),\ncomment = c(\"Director of the OpenForecast consultancy company, UK\",\nORCID = \"0000-0001-7826-0281\")),\nperson(\"Kandrika Fadhlan\", \"Pritularga\", email = \"k.pritularga@lancaster.ac.uk\", role = c(\"aut\"),\ncomment=\"Lecturer, Centre for Marketing Analytics and Forecasting, Lancaster University, UK\"))",
  "URL": "https://openforecast.org/packages/",
  "BugReports": "https://github.com/openforecast-org/legion/issues",
  "Language": "en-GB",
  "Description": "Functions implementing multivariate state space models for\npurposes of time series analysis and forecasting. The focus of\nthe package is on multivariate models, such as Vector\nExponential Smoothing, Vector ETS (Error-Trend-Seasonal model)\netc. It currently includes Vector Exponential Smoothing (VES,\nde Silva et al., 2010, <doi:10.1177/1471082X0901000401>),\nVector ETS (Svetunkov et al., 2023,\n<doi:10.1016/j.ejor.2022.04.040>) and simulation function for\nVES.",
  "License": "LGPL-2.1",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "Encoding": "UTF-8",
  "Roxygen": "list(old_usage = TRUE)",
  "Config/pak/sysreqs": "cmake texlive libssl-dev",
  "Repository": "https://openforecast-org.r-universe.dev",
  "Date/Publication": "2026-10-21 14:21:04 UTC",
  "RemoteUrl": "https://github.com/openforecast-org/legion",
  "RemoteRef": "HEAD",
  "RemoteSha": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-21 14:02:17 UTC",
    "User": "root"
  },
  "Author": "Ivan Svetunkov [aut, cre] (Director of the OpenForecast consultancy\ncompany, UK, ORCID: <https://orcid.org/0000-0001-7826-0281>),\nKandrika Fadhlan Pritularga [aut] (Lecturer, Centre for Marketing\nAnalytics and Forecasting, Lancaster University, UK)",
  "Maintainer": "Ivan Svetunkov <ivan@svetunkov.com>",
  "_user": "openforecast-org",
  "_type": "src",
  "_file": "legion_0.2.2.41003.tar.gz",
  "_fileid": "https://r2.ropensci.org/9b1fff87111394a156f23d9b94afe94096c0eb3d486b47d00554521d7b33ec0a",
  "_filesize": 1263463,
  "_sha256": "9b1fff87111394a156f23d9b94afe94096c0eb3d486b47d00554521d7b33ec0a",
  "_expires": "2027-03-01T14:13:06.000Z",
  "_created": "2026-11-21T14:02:17.000Z",
  "_published": "2026-11-21T14:13:08.078Z",
  "_upstream": "https://github.com/openforecast-org/legion",
  "_status": "success",
  "_maintainer": {
    "name": "Ivan Svetunkov",
    "email": "ivan@svetunkov.com",
    "login": "config-i1",
    "linkedin": "in/isvetunkov",
    "twitter": "@iSvetunkov",
    "description": "",
    "uuid": 7396330,
    "orcid": "0000-0001-7826-0281"
  },
  "_jobs": [
    {
      "job": 136869290133,
      "time": 186,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14709739503"
    },
    {
      "job": 136869290164,
      "time": 227,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14710321770"
    },
    {
      "job": 136869290181,
      "time": 189,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14710485774"
    },
    {
      "job": 136869290184,
      "time": 223,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14709588280"
    },
    {
      "job": 136869290134,
      "time": 238,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14710685369"
    },
    {
      "job": 136869290146,
      "time": 588,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14710303619"
    },
    {
      "job": 136869290148,
      "time": 231,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14710571088"
    },
    {
      "job": 136869290130,
      "time": 255,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14710311797"
    },
    {
      "job": 136868050502,
      "time": 290,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14710027058"
    },
    {
      "job": 136869290096,
      "time": 150,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14709554793"
    },
    {
      "job": 136869290131,
      "time": 412,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14709759858"
    },
    {
      "job": 136869290136,
      "time": 205,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14710133347"
    },
    {
      "job": 136869290168,
      "time": 188,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14710168450"
    },
    {
      "job": 136869290231,
      "time": 420,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14709942960"
    },
    {
      "job": 136869290185,
      "time": 180,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14709899091"
    }
  ],
  "_buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132",
  "_commit": {
    "id": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
    "author": "Ivan Svetunkov <ivan@svetunkov.com>",
    "committer": "Ivan Svetunkov <ivan@svetunkov.com>",
    "message": "Pin the Ubuntu runner to 26.04\n\nubuntu-latest moves to Ubuntu 26.04 between 2026-10-19 and 2026-11-19.\nPin it explicitly so the switch happens now, deliberately, rather than\nunder the label mid-run. Posit already serves R binaries for 26.04.\n\nCo-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>\n",
    "time": 1792592464
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "greybox",
      "version": ">= 1.0.4",
      "role": "Depends"
    },
    {
      "package": "smooth",
      "version": ">= 3.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "version": ">= 0.8.100.0.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.3",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "generics",
      "version": ">= 0.1.2",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "doMC",
      "role": "Suggests"
    },
    {
      "package": "doParallel",
      "role": "Suggests"
    },
    {
      "package": "foreach",
      "role": "Suggests"
    }
  ],
  "_owner": "openforecast-org",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-47",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 3
    },
    {
      "week": "2026-43",
      "n": 6
    }
  ],
  "_tags": [],
  "_stars": 12,
  "_contributors": [
    {
      "user": "config-i1",
      "count": 37,
      "uuid": 7396330
    },
    {
      "user": "nikdraka",
      "count": 3,
      "uuid": 46902915
    },
    {
      "user": "eddelbuettel",
      "count": 1,
      "uuid": 673121
    }
  ],
  "_userbio": {
    "uuid": 305433332,
    "type": "organization",
    "name": "OpenForecast",
    "followers": 15,
    "description": "Open-source forecasting tools, consulting, and training in demand forecasting and inventory management"
  },
  "_downloads": {
    "count": 2090,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/legion"
  },
  "_devurl": "https://github.com/openforecast-org/legion",
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_abi": {
    "exports": [],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/legion.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/openforecast-org/legion",
  "_realowner": "openforecast-org",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-05-17"
    },
    {
      "version": "0.1.1",
      "date": "2022-02-15"
    },
    {
      "version": "0.1.2",
      "date": "2023-01-31"
    },
    {
      "version": "0.2.1",
      "date": "2025-02-03"
    }
  ],
  "_authors": [
    {
      "name": "Ivan Svetunkov",
      "email": "ivan@svetunkov.com",
      "orcid": "0000-0001-7826-0281",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "Kandrika Fadhlan Pritularga",
      "email": "k.pritularga@lancaster.ac.uk",
      "role": [
        "aut"
      ]
    }
  ],
  "_exports": [
    "auto.vets",
    "is.legion",
    "is.legion.sim",
    "is.oves",
    "oves",
    "sim.ves",
    "ves",
    "vets"
  ],
  "_help": [
    {
      "page": "vets",
      "title": "Vector ETS-PIC model",
      "topics": [
        "auto.vets",
        "vets"
      ]
    },
    {
      "page": "isFunctions",
      "title": "legion classes checkers",
      "topics": [
        "is.legion",
        "is.legion.sim",
        "is.oves"
      ]
    },
    {
      "page": "legion",
      "title": "Legion package",
      "topics": [
        "legion-package",
        "legion"
      ]
    },
    {
      "page": "oves",
      "title": "Occurrence part of Vector State Space",
      "topics": [
        "oves"
      ]
    },
    {
      "page": "plot.legion",
      "title": "Plots for the fit and states",
      "topics": [
        "plot.legion"
      ]
    },
    {
      "page": "sim.ves",
      "title": "Simulate Vector Exponential Smoothing",
      "topics": [
        "sim.ves"
      ]
    },
    {
      "page": "ves",
      "title": "Vector Exponential Smoothing in SSOE state space model",
      "topics": [
        "ves"
      ]
    }
  ],
  "_readme": "https://github.com/openforecast-org/legion/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "curl",
    "generics",
    "greybox",
    "httr",
    "jsonlite",
    "lattice",
    "MASS",
    "Matrix",
    "mime",
    "nloptr",
    "openssl",
    "pracma",
    "R6",
    "Rcpp",
    "RcppArmadillo",
    "smooth",
    "statmod",
    "sys",
    "texreg",
    "xtable",
    "zoo"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "legion.Rmd",
      "filename": "legion.html",
      "title": "legion: Forecasting Using Multivariate Models",
      "author": "Ivan Svetunkov",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Methods for the class legion"
      ],
      "created": "2021-02-18 15:26:40",
      "modified": "2021-04-20 21:57:07",
      "commits": 3
    },
    {
      "source": "ves.Rmd",
      "filename": "ves.html",
      "title": "ves() - Vector Exponential Smoothing",
      "author": "Ivan Svetunkov",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulate data from VES",
        "References"
      ],
      "created": "2021-02-18 15:26:40",
      "modified": "2022-02-01 13:39:11",
      "commits": 7
    },
    {
      "source": "vets.Rmd",
      "filename": "vets.html",
      "title": "vets() - Vector ETS",
      "author": "Ivan Svetunkov",
      "engine": "knitr::rmarkdown",
      "headings": [
        "References"
      ],
      "created": "2021-04-20 21:57:07",
      "modified": "2025-10-21 18:54:18",
      "commits": 5
    }
  ],
  "_score": 6.830691296317667,
  "_indexed": true,
  "_nocasepkg": "legion",
  "_universes": [
    "openforecast-org",
    "config-i1"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:04:57.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/e0275224beb337882e703f81bb290f31d5091e0dc344cfd006f133030a200053",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:05:18.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/35862de4ece980280580ab4bdd334519d2ea2c9c7288a96c2bfe1f90090df5e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:05:03.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/da30dbb6b5cc51c6766e1df05c805c6755fef278a4f3c29b873e0be730a7af17",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:05:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/0ebebc29fca60b5bd034e5beed9634639342768a745dd9ee5f3a2fc035383d6f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:05:18.000Z",
      "arch": "aarch64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/ce8259420c4738e9dbde79aa9e38b6247664b457287d58ed99b6eca7acf2aabc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:08:23.000Z",
      "arch": "x86_64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/0fa0f957added0164732f9b93ec26d057b3dc55beee7a534bd7ee10979d53c73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:04:59.000Z",
      "arch": "aarch64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/e462f938756c22e3db3998e8975d02c891189880d8c3d6f22afc01dfedda2116",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:05:20.000Z",
      "arch": "x86_64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/b89a3c078b6794b4851197608305fd6272fadd2d43b0af55adb0261a1a794c6f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:05:10.000Z",
      "arch": "emscripten",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/032635bfb32b7a64f79f84ec0e5030683d4f5f46ab1f0a19b639caf8edef3a03",
      "status": "success",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:07:57.000Z",
      "arch": "aarch64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/d8d90a43d7b196fad70bec14ad821161d56e24698be2d35f5f9b998d9a346a21",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:03:58.000Z",
      "arch": "x86_64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/aa852a23240efe3e69d61af58367b88485581a438a61fbe3965cc9bb4ef696de",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:04:11.000Z",
      "arch": "x86_64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/68ff937aed5996574461f802ef405c55f61c82c3a1d9dfcc4d43a7f5d8a8bedf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:07:58.000Z",
      "arch": "aarch64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/e481f54d9f9d012d1221ce7ba1e758d78745c81f6ceead9fdbbf73c3e81e03d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.2.2.41003",
      "date": "2026-11-21T14:04:02.000Z",
      "arch": "x86_64",
      "commit": "1ae4ea05abcb4273c5bcb6dc74396f2822b37491",
      "fileid": "https://r2.ropensci.org/c863b5f413bfc89efdaa66067bcec5aad01cf2e3730ca8d02d3976bfee47f5ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openforecast-org/actions/runs/44911458132"
    }
  ]
}