{
  "_id": "6b119633ee7507cf073a087e",
  "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-12-03 15:08:32 UTC",
  "RemoteUrl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "RemoteRef": "HEAD",
  "RemoteSha": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-12-03 16:08:12 UTC",
    "User": "root"
  },
  "Author": "Francisco Martinez [aut, cre]",
  "_user": "franciscomartinezdelrio",
  "_type": "src",
  "_file": "tsfknn_0.7.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/c38e19dc3a34d3e394d85a72e4e5c7edcc72d750d12a92f15d913ced88d386cf",
  "_filesize": 870074,
  "_sha256": "c38e19dc3a34d3e394d85a72e4e5c7edcc72d750d12a92f15d913ced88d386cf",
  "_expires": "2027-03-13T16:17:53.000Z",
  "_created": "2026-12-03T16:08:12.000Z",
  "_published": "2026-12-03T16:17:55.175Z",
  "_upstream": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_status": "success",
  "_maintainer": {
    "name": "Francisco Martinez",
    "email": "fmartin@ujaen.es",
    "login": "franciscomartinezdelrio",
    "description": "",
    "uuid": 18212287
  },
  "_jobs": [
    {
      "job": 144397886794,
      "time": 152,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15748516069"
    },
    {
      "job": 144397886690,
      "time": 190,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15748321240"
    },
    {
      "job": 144397886595,
      "time": 150,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15746257032"
    },
    {
      "job": 144397886563,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15747311787"
    },
    {
      "job": 144397886568,
      "time": 255,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15748511282"
    },
    {
      "job": 144397886554,
      "time": 532,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15747847000"
    },
    {
      "job": 144397886503,
      "time": 239,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15748650577"
    },
    {
      "job": 144397886643,
      "time": 421,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15747182378"
    },
    {
      "job": 144394714552,
      "time": 260,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15746029742"
    },
    {
      "job": 144397886316,
      "time": 127,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15746392263"
    },
    {
      "job": 144397886583,
      "time": 402,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15748566327"
    },
    {
      "job": 144397886684,
      "time": 140,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15746194817"
    },
    {
      "job": 144397886642,
      "time": 156,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15747227143"
    },
    {
      "job": 144397886733,
      "time": 406,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15748377187"
    },
    {
      "job": 144397886805,
      "time": 141,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15747616488"
    }
  ],
  "_buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688",
  "_commit": {
    "id": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
    "author": "franciscomartinezdelrio <fmartin@ujaen.es>",
    "committer": "franciscomartinezdelrio <fmartin@ujaen.es>",
    "message": "Merge branch 'master' of https://github.com/franciscomartinezdelrio/tsfknn\n",
    "time": 1796310512
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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
    },
    {
      "week": "2026-49",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.7.1",
      "date": "2026-10-13"
    }
  ],
  "_stars": 12,
  "_contributors": [
    {
      "user": "franciscomartinezdelrio",
      "count": 139,
      "uuid": 18212287
    },
    {
      "user": "emraher",
      "count": 1,
      "uuid": 1182257
    }
  ],
  "_userbio": {
    "uuid": 18212287,
    "type": "user",
    "name": "Francisco Martínez del Río",
    "followers": 6
  },
  "_downloads": {
    "count": 767,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tsfknn"
  },
  "_devurl": "https://github.com/franciscomartinezdelrio/tsfknn",
  "_searchresults": 70,
  "_topics": [
    "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/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"
    }
  ],
  "_authors": [
    {
      "name": "Francisco Martinez",
      "email": "fmartin@ujaen.es",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_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.924279286061882,
  "_indexed": true,
  "_nocasepkg": "tsfknn",
  "_universes": [
    "franciscomartinezdelrio"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-12-03T16:10:37.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/dc72ded05cc9a809b2c49d622f0f1b5671ec9fb21dac1fa023a625973995762e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-12-03T16:11:08.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/cd2b49017c7e6392ca95d24833037a9ae99bf95e994aa6d275185a4b49b015b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-12-03T16:10:38.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/75426f245e16af5477acef95c9ec6ee9c648cc16d3776f5a6322b25f7d692f71",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.7.1",
      "date": "2026-12-03T16:10:46.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/b4b778a03bf92cfaaa15d900880a7f20d4056ad2ce6203f7b333e07c4fe1ba38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-12-03T16:11:28.000Z",
      "arch": "aarch64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/628875462119cd7192ad79b86718711b7d6e806583230f1ee830f5425fb7c23e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-12-03T16:15:16.000Z",
      "arch": "x86_64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/f77aa62a97c16c8518ad403b05ffe5fbd187a54c5d8bd28bbda8871749adcae0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-12-03T16:11:15.000Z",
      "arch": "aarch64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/423b93d2875784c928a2346021d1733f916684b56af391f359ef3d10bb28034d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.7.1",
      "date": "2026-12-03T16:13:13.000Z",
      "arch": "x86_64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/dcc89617d4b18aeab71d98e03112a95a1cd68a0286e93982ee86a3c267b246c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.7.1",
      "date": "2026-12-03T16:10:38.000Z",
      "arch": "emscripten",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/e5c476eafefe6277bc0355f23905e5b09bebe8ec2229b615f7f9ba502b6f46d5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-12-03T16:14:01.000Z",
      "arch": "aarch64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/2f174908fc20ee71c6f40da9a0e6765fd7f7aee416bdb3192382d5579b617340",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-12-03T16:09:44.000Z",
      "arch": "x86_64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/24a795c14257879aad8fc145fecad91ceb80b89b0e1664fc1eeebc75db64c8b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-12-03T16:10:04.000Z",
      "arch": "x86_64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/827d0fadebf8fba31ab18cbb42b2ee2885a97718fb3b1a5a75215988fbdd211f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-12-03T16:14:01.000Z",
      "arch": "aarch64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/f1ef21187c3eacb3f96798e430b73a971a19f7fb4321374a3ee71f7c9114854b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.7.1",
      "date": "2026-12-03T16:09:55.000Z",
      "arch": "x86_64",
      "commit": "2d01406a097cd68e4b44edc845ceacc34dfd3fc7",
      "fileid": "https://r2.ropensci.org/f846c048b6324d0bdcde82d7d598c28772e32b8904716bc5d084d478feda05ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/franciscomartinezdelrio/actions/runs/47146089688"
    }
  ]
}