{
  "_id": "6ace3383a14063b82c3b12d8",
  "Package": "tsfknn",
  "Type": "Package",
  "Title": "Time Series Forecasting Using Nearest Neighbors",
  "Version": "0.7.1",
  "Authors@R": "person(\"Francisco\", \"Martinez\", email = \"fmartin@ujaen.es\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Allows forecasting time series using nearest neighbors\nregression Francisco Martinez, Maria P. Frias, Maria D.\nPerez-Godoy and Antonio J. Rivera (2019)\n<doi:10.1007/s10462-017-9593-z>. When the forecasting horizon\nis higher than 1, two multi-step ahead forecasting strategies\ncan be used. The model built is univariate and autoregressive,\nthat is, it is only based on the observations of the time\nseries. The nearest neighbors used in a prediction can be\nconsulted and plotted.",
  "Maintainer": "Francisco Martinez <fmartin@ujaen.es>",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "8.0.0",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/franciscomartinezdelrio/tsfknn",
  "BugReports": "https://github.com/franciscomartinezdelrio/tsfknn/issues",
  "Config/testthat/edition": "3",
  "Repository": "https://franciscomartinezdelrio.r-universe.dev",
  "Date/Publication": "2026-10-13 08:08:10 UTC",
  "RemoteUrl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "RemoteRef": "HEAD",
  "RemoteSha": "86a5e945a1d095121be5f043497aec3f5ea0112f",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-13 12:49:40 UTC",
    "User": "root"
  },
  "Author": "Francisco Martinez [aut, cre]",
  "_user": "franciscomartinezdelrio",
  "_type": "src",
  "_file": "tsfknn_0.7.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/f2e691608d0c2f2fe6783d56928b04bf6f173e6e2767d69289886546323f44aa",
  "_filesize": 869954,
  "_sha256": "f2e691608d0c2f2fe6783d56928b04bf6f173e6e2767d69289886546323f44aa",
  "_expires": "2027-01-21T13:34:57.000Z",
  "_created": "2026-10-13T12:49:40.000Z",
  "_published": "2026-10-13T13:34:59.632Z",
  "_buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115305665571,
      "time": 133,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11814973240"
    },
    {
      "job": 115305665675,
      "time": 178,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11815030565"
    },
    {
      "job": 115305665532,
      "time": 149,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11815065510"
    },
    {
      "job": 115305665567,
      "time": 174,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11815290414"
    },
    {
      "job": 115305665513,
      "time": 124,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11817651854"
    },
    {
      "job": 115305665477,
      "time": 246,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11817427586"
    },
    {
      "job": 115305665517,
      "time": 119,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11816982498"
    },
    {
      "job": 115305665600,
      "time": 363,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11817193691"
    },
    {
      "job": 115304300466,
      "time": 189,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11814990120"
    },
    {
      "job": 115305665393,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11814149232"
    },
    {
      "job": 115305665712,
      "time": 209,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11814014637"
    },
    {
      "job": 115305666191,
      "time": 148,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11814779198"
    },
    {
      "job": 115305665650,
      "time": 119,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11815340168"
    },
    {
      "job": 115305665937,
      "time": 218,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11815110720"
    },
    {
      "job": 115305665700,
      "time": 84,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11815090242"
    }
  ],
  "_upstream": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_commit": {
    "id": "86a5e945a1d095121be5f043497aec3f5ea0112f",
    "author": "franciscomartinezdelrio <fmartin@ujaen.es>",
    "committer": "franciscomartinezdelrio <fmartin@ujaen.es>",
    "message": "Changes to deal with new version of Rcpp\n",
    "time": 1791878890
  },
  "_maintainer": {
    "name": "Francisco Martinez",
    "email": "fmartin@ujaen.es",
    "login": "franciscomartinezdelrio",
    "description": "",
    "uuid": 18212287
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.1.1",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "franciscomartinezdelrio",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 12,
  "_contributors": [
    {
      "user": "franciscomartinezdelrio",
      "count": 137,
      "uuid": 18212287
    },
    {
      "user": "emraher",
      "count": 1,
      "uuid": 1182257
    }
  ],
  "_userbio": {
    "uuid": 18212287,
    "type": "user",
    "name": "Francisco Martínez del Río",
    "followers": 6
  },
  "_downloads": {
    "count": 424,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tsfknn"
  },
  "_devurl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_searchresults": 67,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tsfknn.html"
  ],
  "_homeurl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_realowner": "franciscomartinezdelrio",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2018-03-28"
    },
    {
      "version": "0.2.0",
      "date": "2019-04-09"
    },
    {
      "version": "0.3.0",
      "date": "2019-05-31"
    },
    {
      "version": "0.4.0",
      "date": "2020-06-04"
    },
    {
      "version": "0.5.0",
      "date": "2021-04-05"
    },
    {
      "version": "0.5.1",
      "date": "2023-03-09"
    },
    {
      "version": "0.5.2",
      "date": "2023-09-04"
    },
    {
      "version": "0.6.0",
      "date": "2023-12-20"
    },
    {
      "version": "0.7.1",
      "date": "2026-10-13"
    }
  ],
  "_exports": [
    "knn_examples",
    "knn_forecasting",
    "n_training_examples",
    "nearest_neighbors",
    "rolling_origin"
  ],
  "_help": [
    {
      "page": "autoplot.knnForecast",
      "title": "Create a ggplot object from a knnForecast object",
      "topics": [
        "autoplot.knnForecast"
      ]
    },
    {
      "page": "knn_examples",
      "title": "Training set associated to a model",
      "topics": [
        "knn_examples"
      ]
    },
    {
      "page": "knn_forecasting",
      "title": "Time series forecasting using KNN regression",
      "topics": [
        "knn_forecasting"
      ]
    },
    {
      "page": "n_training_examples",
      "title": "Number of training examples",
      "topics": [
        "n_training_examples"
      ]
    },
    {
      "page": "nearest_neighbors",
      "title": "Nearest neighbors associated with predictions",
      "topics": [
        "nearest_neighbors"
      ]
    },
    {
      "page": "plot.knnForecastRO",
      "title": "Plot a prediction of a test set",
      "topics": [
        "plot.knnForecastRO"
      ]
    },
    {
      "page": "predict.knnForecast",
      "title": "Predict method for KNN models for time series forecasting.",
      "topics": [
        "predict.knnForecast"
      ]
    },
    {
      "page": "rolling_origin",
      "title": "Assessing forecasting accuracy with rolling origin",
      "topics": [
        "rolling_origin"
      ]
    }
  ],
  "_readme": "https://github.com/franciscomartinezdelrio/tsfknn/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "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": "tsfknn.Rmd",
      "filename": "tsfknn.html",
      "title": "Time Series Forecasting with KNN in R: the tsfknn Package",
      "author": "Francisco Martinez, Maria P. Frias, Francisco Charte, Antonio J. Rivera",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Time series forecasting with KNN regression",
        "Multi-step ahead strategies",
        "The Multiple Input Multiple Output strategy",
        "The recursive strategy",
        "Additional features",
        "Combination and distance function",
        "Combining several models with different k parameters",
        "Forecasting time series with a trend",
        "Automatic forecasting",
        "Evaluating the model",
        "Conclusions",
        "References"
      ],
      "created": "2018-03-21 11:56:39",
      "modified": "2023-12-20 11:15:38",
      "commits": 18
    }
  ],
  "_score": 5.604226053084471,
  "_indexed": true,
  "_nocasepkg": "tsfknn",
  "_universes": [
    "franciscomartinezdelrio"
  ],
  "_previous": "0.6.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-10-13T12:51:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/52c4b0e678db90983fde957e4f388a56d3e19c53409e35feb9d7d36cd6e51793",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-10-13T12:52:17.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/7eaefc2eb26228eac7538bf294e61acc864de26a92cba0f9564c796710eb6c45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-10-13T12:52:04.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/2c10e3820c8c36ba02d4e60d65e0e579ed24a3d4e091557bda1f0b9f4f1cae20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-10-13T12:52:17.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/75f4031a3e1e8ca3e305e0fa12d39bf651d67f68957684da620a51408e6b5ea3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-10-13T13:26:22.000Z",
      "arch": "aarch64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/244fb33f11ea0e2d26069da87ae88fc47e1b5ff9c61532bc96caf20b1ed445ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-10-13T13:29:20.000Z",
      "arch": "x86_64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/09ac93a0e6bb7c490b947a183b4767564257a07ed022c08859e4a8c834221a15",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-10-13T13:26:17.000Z",
      "arch": "aarch64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/9fdcf7993f3f524dcc4b3b5a7ea1aca68927f533f06d1a4b12cb56e9a86b18c0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-10-13T13:32:57.000Z",
      "arch": "x86_64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/66370e8634f233b2b233ce817376aab0a00da6d5805bae2e8c64c207aeadcf12",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.7.1",
      "date": "2026-10-13T12:51:42.000Z",
      "arch": "emscripten",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/d29fa8b114b3087c50cd5e8e2635fd5f85ce6d166d18dd23b0fa17cc6b3165a3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-10-13T12:52:46.000Z",
      "arch": "aarch64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/5871ad2230d39feff7d548825f593a693e943bcb99b3baec61cdc483e135462b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-10-13T12:50:51.000Z",
      "arch": "x86_64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/4470c529854d14db02e7304815979822537beae732fede6da54883780a6e20d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-10-13T12:51:01.000Z",
      "arch": "x86_64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/2535e297f4f13adcd719c32a1ab0b615cfd0e4a3e8fd2e4d58c03fb2332a2221",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-10-13T12:52:55.000Z",
      "arch": "aarch64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/e60cbf512ae3511282786b04ef9db39b84b4d75f7dd979743986384086dde4b3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-10-13T12:50:43.000Z",
      "arch": "x86_64",
      "commit": "86a5e945a1d095121be5f043497aec3f5ea0112f",
      "fileid": "https://r2.ropensci.org/f4659ce953d9a0376bf3bd7a0093f4b44f7d03d794ea1e91c26b8c04a742eaf9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/38399797767"
    }
  ]
}