{
  "_id": "6ad510af7f75c4fbd3a1df7f",
  "Package": "lwpls",
  "Type": "Package",
  "Title": "Locally-Weighted Partial Least Squares for 'tidymodels'",
  "Version": "0.3.0",
  "Authors@R": "c(\nperson(\"Christian L.\", \"Goueguel\", , \"christian.goueguel@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Hiromasa\", \"Kaneko\", role = \"cph\",\ncomment = \"reference LW-PLS implementation transcribed in the tests\")\n)",
  "Description": "Locally-weighted partial least squares (LW-PLS) is a\njust-in-time learning method that builds a dedicated weighted\npartial least squares model around every new sample, where\ntraining samples are weighted by their similarity to that\nsample (Kim et al. (2011) <doi:10.1016/j.ijpharm.2011.10.007>).\nRegression (single or multiple outcomes) and classification\n(locally weighted partial least squares-discriminant analysis;\nBevilacqua and Marini (2014) <doi:10.1016/j.aca.2014.05.057>)\nare supported. The local models can be robust to outliers, by\npartial robust M-regression (Serneels et al. (2005)\n<doi:10.1016/j.chemolab.2005.04.007>), and sparse (Hoffmann et\nal. (2015) <doi:10.1016/j.chemolab.2015.09.019>). The\nprediction kernel is written in C++ with 'RcppArmadillo', and\nthe model is integrated with the 'parsnip', 'dials', 'tune' and\n'yardstick' packages so it can be used within the 'tidymodels'\nframework. Diagnostics of the local models (prediction\nreliability, local regression vectors, robust weights and\nselected predictors) come with 'ggplot2' plots designed for\nspectroscopic data.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/ChristianGoueguel/lwpls,\nhttps://christiangoueguel.com/lwpls/",
  "BugReports": "https://github.com/ChristianGoueguel/lwpls/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Config/roxygen2/version": "8.1.0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-18 18:27:02 UTC",
    "User": "root"
  },
  "Author": "Christian L. Goueguel [aut, cre], Hiromasa Kaneko [cph]\n(reference LW-PLS implementation transcribed in the tests)",
  "Maintainer": "Christian L. Goueguel <christian.goueguel@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-18 18:13:19 UTC",
  "RemoteUrl": "https://github.com/cran/lwpls",
  "RemoteRef": "HEAD",
  "RemoteSha": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
  "_user": "cran",
  "_type": "src",
  "_file": "lwpls_0.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/9a16afaaaaa37fb4fb73021763934d7eb8c77793684fc1c6f1ade9e4918143c8",
  "_filesize": 3621601,
  "_sha256": "9a16afaaaaa37fb4fb73021763934d7eb8c77793684fc1c6f1ade9e4918143c8",
  "_expires": "2027-01-26T18:32:13.000Z",
  "_created": "2026-10-18T18:27:02.000Z",
  "_published": "2026-10-18T18:32:15.852Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117754041405,
      "time": 153,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12146516043"
    },
    {
      "job": 117754041342,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12146835891"
    },
    {
      "job": 117754041360,
      "time": 153,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146720431"
    },
    {
      "job": 117754041411,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146800254"
    },
    {
      "job": 117753010663,
      "time": 273,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146456689"
    },
    {
      "job": 117754041460,
      "time": 120,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12146009263"
    },
    {
      "job": 117754041399,
      "time": 261,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12146497028"
    },
    {
      "job": 117754041347,
      "time": 193,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12146970245"
    },
    {
      "job": 117754041416,
      "time": 237,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146641493"
    },
    {
      "job": 117754041346,
      "time": 157,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146671335"
    }
  ],
  "_upstream": "https://github.com/cran/lwpls",
  "_commit": {
    "id": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
    "author": "Christian L. Goueguel <christian.goueguel@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.3.0\n",
    "time": 1792347199
  },
  "_maintainer": {
    "name": "Christian L. Goueguel",
    "email": "christian.goueguel@gmail.com",
    "login": "christiangoueguel",
    "description": "Optics | Laser Spectroscopy | Chemometrics ",
    "uuid": 59129468
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dials",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.0",
      "role": "Imports"
    },
    {
      "package": "hardhat",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "parsnip",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "scales",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "role": "Imports"
    },
    {
      "package": "yardstick",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "modeldata",
      "role": "Suggests"
    },
    {
      "package": "plotly",
      "role": "Suggests"
    },
    {
      "package": "pls",
      "role": "Suggests"
    },
    {
      "package": "recipes",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rsample",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tune",
      "version": ">= 1.1.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "workflows",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.3.0",
      "date": "2026-10-18"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "christiangoueguel",
      "count": 1,
      "uuid": 59129468
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/lwpls"
  },
  "_devurl": "https://github.com/christiangoueguel/lwpls",
  "_pkgdown": "https://christiangoueguel.com/lwpls/",
  "_searchresults": 0,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/lwpls.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.3.0",
      "date": "2026-10-18"
    }
  ],
  "_exports": [
    "localization",
    "lwpls",
    "lwpls_fit",
    "lwpls_local",
    "plot_coefficients",
    "plot_reliability",
    "plot_robust_weights",
    "plot_selection",
    "similarity",
    "sparsity",
    "trimmed_rmse",
    "trimmed_rmse_vec",
    "values_similarity"
  ],
  "_help": [
    {
      "page": "localization",
      "title": "Localization parameter for LW-PLS",
      "topics": [
        "localization"
      ]
    },
    {
      "page": "lwpls",
      "title": "Locally-weighted partial least squares",
      "topics": [
        "lwpls"
      ]
    },
    {
      "page": "lwpls_fit",
      "title": "Fit a locally-weighted partial least squares model",
      "topics": [
        "lwpls_fit",
        "lwpls_fit.data.frame",
        "lwpls_fit.default",
        "lwpls_fit.formula",
        "lwpls_fit.matrix",
        "lwpls_fit.recipe"
      ]
    },
    {
      "page": "lwpls_local",
      "title": "Local models of LW-PLS predictions",
      "topics": [
        "lwpls_local",
        "lwpls_local.default",
        "lwpls_local.lwpls_fit",
        "lwpls_local.model_fit",
        "lwpls_local.workflow"
      ]
    },
    {
      "page": "lwpls_plots",
      "title": "Plots of LW-PLS local models",
      "topics": [
        "autoplot.lwpls_local",
        "lwpls_plots",
        "plot_coefficients",
        "plot_reliability",
        "plot_robust_weights",
        "plot_selection"
      ]
    },
    {
      "page": "multi_predict._lwpls_fit",
      "title": "Predictions for several numbers of components",
      "topics": [
        "multi_predict._lwpls_fit"
      ]
    },
    {
      "page": "predict.lwpls_fit",
      "title": "Predict from a locally-weighted PLS model",
      "topics": [
        "predict.lwpls_fit"
      ]
    },
    {
      "page": "similarity",
      "title": "Similarity index for LW-PLS",
      "topics": [
        "similarity",
        "values_similarity"
      ]
    },
    {
      "page": "sparsity",
      "title": "Sparsity of the LW-PLS local models",
      "topics": [
        "sparsity"
      ]
    },
    {
      "page": "trimmed_rmse",
      "title": "Trimmed root mean squared error",
      "topics": [
        "trimmed_rmse",
        "trimmed_rmse.data.frame",
        "trimmed_rmse_vec"
      ]
    },
    {
      "page": "update.lwpls",
      "title": "Update a locally-weighted PLS specification",
      "topics": [
        "update.lwpls"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/lwpls/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/lwpls/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "dials",
    "DiceDesign",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "hardhat",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "parsnip",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "sfd",
    "sparsevctrs",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "yardstick"
  ],
  "_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": "similarity.Rmd",
      "filename": "similarity.html",
      "title": "Choosing a similarity index",
      "engine": "knitr::rmarkdown",
      "headings": [
        "One weight function, two distances",
        "Euclidean distance",
        "Covariance-based distance",
        "The three neighborhoods side by side",
        "When the covariance-based index helps",
        "When the covariance-based index fails",
        "Choosing in practice",
        "References"
      ],
      "created": "2026-10-18 18:13:19",
      "modified": "2026-10-18 18:13:19",
      "commits": 1
    },
    {
      "source": "diagnostics.Rmd",
      "filename": "diagnostics.html",
      "title": "Diagnostic plots for spectroscopy",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Can I trust this prediction?",
        "Theoretical limits and percentile ranks",
        "Which bands drive the predictions?",
        "Which reference values are suspect?",
        "Which wavelengths are selected?",
        "Customizing the plots",
        "References"
      ],
      "created": "2026-10-18 18:13:19",
      "modified": "2026-10-18 18:13:19",
      "commits": 1
    },
    {
      "source": "lwpls.Rmd",
      "filename": "lwpls.html",
      "title": "Introduction to lwpls",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The algorithm",
        "Regression: fat-free water content of meat from NIR spectra",
        "Comparison with global PLS",
        "Similarity indexes",
        "Classification",
        "Using the engine directly",
        "Robust and sparse local models",
        "Engine arguments",
        "References"
      ],
      "created": "2026-10-18 18:13:19",
      "modified": "2026-10-18 18:13:19",
      "commits": 1
    },
    {
      "source": "robust-sparse.Rmd",
      "filename": "robust-sparse.html",
      "title": "Robust and sparse LW-PLS",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Robust LW-PLS",
        "Why",
        "Example: wrong reference values",
        "Sparse LW-PLS",
        "Sparse and robust",
        "References"
      ],
      "created": "2026-10-18 18:13:19",
      "modified": "2026-10-18 18:13:19",
      "commits": 1
    }
  ],
  "_score": 3.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "lwpls",
  "_universes": [
    "cran",
    "christiangoueguel"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-18T18:29:16.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/d8b5ef9e8be625938c38a8ae33699c09248bd3bb123659ec62ee05cf28f69f8e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-18T18:29:32.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/7f09c83f21c561f92e0a235481cd1512f375423375efa83abf36bdf6503536d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-18T18:29:22.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/adc169a557b5d8b02f619a824823b53e13a6a0cbf1b4676ca4ed7520d86e5487",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-10-18T18:29:38.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/21d441ac971c4852cdd9821252512a7cfafa4796e3fef97b051ab8f279e7bde9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-10-18T18:29:25.000Z",
      "arch": "emscripten",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/d22995c8a44f42673015451591a3aa6863c98e1dc387ad5543da694795a52752",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-18T18:30:41.000Z",
      "arch": "aarch64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/1b749b6d2121c1a5c08792cef632aecff33713483abc1ff121b397a19ca6db7b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-18T18:28:35.000Z",
      "arch": "x86_64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/0a7504d46ec6a666a7dcdea8f1fe9223da4a2d02737f42e20828cdebdd63cf9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-18T18:30:16.000Z",
      "arch": "aarch64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/fa10a9a5a28934468ed8ad841391cdf54b1f1fe5b4cdcf81eef093b787fac70f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-10-18T18:28:30.000Z",
      "arch": "x86_64",
      "commit": "cded278d38e5411b3d2d33ca7d393e46aae4dd34",
      "fileid": "https://r2.ropensci.org/bbdcf52e3f4d87fe49e603b92e21bbfa204836b291724a20f62420dd92561305",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39153870447"
    }
  ]
}