{
  "_id": "6a102584acfb0bcc41c8ec3a",
  "Package": "lightr",
  "Title": "Read Spectrometric Data and Metadata",
  "Version": "2.0.0",
  "Authors@R": "c(\nperson(\"Hugo\", \"Gruson\", role = c(\"cre\", \"aut\", \"cph\"),\nemail = \"hugo.gruson+R@normalesup.org\",\ncomment = c(ORCID = \"0000-0002-4094-1476\")),\nperson(\"Rafael\", \"Maia\", role = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-7563-9795\")),\nperson(\"Thomas\", \"White\", role = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-3976-1734\")),\nperson(\"Kotya\", \"Karapetyan\", role = c(\"ctb\", \"cph\"),\ncomment = \"Author of the MATLAB script to read AvaSoft7 binary files (CC-BY)\")\n)",
  "Description": "Parse various reflectance/transmittance/absorbance spectra\nfile formats to extract spectral data and metadata, as\ndescribed in Gruson, White & Maia (2019)\n<doi:10.21105/joss.01857>. Among other formats, it can import\nfiles from 'Avantes' <https://www.avantes.com/>, 'CRAIC'\n<https://www.microspectra.com/>, and\n'OceanOptics'/'OceanInsight' <https://www.oceanoptics.com/>\nbrands.",
  "URL": "https://docs.ropensci.org/lightr/,\nhttps://github.com/ropensci/lightr",
  "BugReports": "https://github.com/ropensci/lightr/issues",
  "License": "GPL (>=2)",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "Language": "en-GB",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/usethis/last-upkeep": "2025-07-08",
  "Config/pak/sysreqs": "libxml2-dev",
  "Repository": "https://ropensci.r-universe.dev",
  "Date/Publication": "2026-04-10 19:13:08 UTC",
  "RemoteUrl": "https://github.com/ropensci/lightr",
  "RemoteRef": "main",
  "RemoteSha": "49beead53e059da587feb49559d74b6cd93f9962",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-13 09:33:29 UTC",
    "User": "root"
  },
  "Author": "Hugo Gruson [cre, aut, cph] (ORCID:\n<https://orcid.org/0000-0002-4094-1476>),\nRafael Maia [aut, cph] (ORCID: <https://orcid.org/0000-0002-7563-9795>),\nThomas White [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-3976-1734>),\nKotya Karapetyan [ctb, cph] (Author of the MATLAB script to read\nAvaSoft7 binary files (CC-BY))",
  "Maintainer": "Hugo Gruson <hugo.gruson+R@normalesup.org>",
  "MD5sum": "eb4bab8f932f74a11f6af1660cdca1bb",
  "_user": "ropensci",
  "_type": "src",
  "_file": "lightr_2.0.0.tar.gz",
  "_fileid": "d1523804008e96067a44639ba0ee2a6909e7988748be075e130dd1c830c49d51",
  "_filesize": 5487534,
  "_sha256": "d1523804008e96067a44639ba0ee2a6909e7988748be075e130dd1c830c49d51",
  "_created": "2026-05-13T09:33:29.000Z",
  "_published": "2026-05-22T09:44:36.486Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77355121906,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6966575570"
    },
    {
      "job": 77355121657,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6966564412"
    },
    {
      "job": 77355121950,
      "time": 111,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6966548900"
    },
    {
      "job": 77355121735,
      "time": 163,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6966567380"
    },
    {
      "job": 77355121202,
      "time": 187,
      "config": "pkgdown",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6966506365"
    },
    {
      "job": 77355121201,
      "time": 194,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6966509452"
    },
    {
      "job": 77355121242,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157555394"
    },
    {
      "job": 77355121749,
      "time": 144,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6966561121"
    },
    {
      "job": 77355121856,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6966544956"
    },
    {
      "job": 77355121820,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6966542827"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ropensci/lightr",
  "_commit": {
    "id": "49beead53e059da587feb49559d74b6cd93f9962",
    "author": "Hugo Gruson <git@hugogruson.fr>",
    "committer": "Hugo Gruson <git@hugogruson.fr>",
    "message": "Increment version number to 2.0.0\n",
    "time": 1775848388
  },
  "_maintainer": {
    "name": "Hugo Gruson",
    "email": "hugo.gruson+r@normalesup.org",
    "login": "bisaloo",
    "mastodon": "@grusonh@mastodon.social",
    "orcid": "0000-0002-4094-1476",
    "uuid": 10783929
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "future.apply",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "xml2",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lintr",
      "role": "Suggests"
    },
    {
      "package": "pavo",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "ropensci",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [
    {
      "week": "2025-22",
      "n": 4
    },
    {
      "week": "2025-28",
      "n": 7
    },
    {
      "week": "2025-29",
      "n": 15
    },
    {
      "week": "2025-30",
      "n": 25
    },
    {
      "week": "2025-31",
      "n": 3
    },
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-39",
      "n": 16
    },
    {
      "week": "2025-42",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 15
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v1.9.0",
      "date": "2025-07-21"
    }
  ],
  "_topics": [
    "file-import",
    "reproducibility",
    "reproducible-research",
    "reproducible-science",
    "spectral-data",
    "spectroscopy"
  ],
  "_stars": 15,
  "_contributors": [
    {
      "user": "bisaloo",
      "count": 796,
      "uuid": 10783929
    },
    {
      "user": "copilot",
      "count": 2,
      "uuid": 198982749
    },
    {
      "user": "danielskatz",
      "count": 1,
      "uuid": 2913845
    },
    {
      "user": "maelle",
      "count": 1,
      "uuid": 8360597
    }
  ],
  "_userbio": {
    "uuid": 1200269,
    "type": "organization",
    "name": "rOpenSci",
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 1086,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/lightr"
  },
  "_devurl": "https://github.com/ropensci/lightr",
  "_pkgdown": "https://docs.ropensci.org/lightr/",
  "_searchresults": 15,
  "_metadata": {
    "review": {
      "id": 267,
      "status": "reviewed",
      "version": "0.0.0.9000",
      "organization": "rOpenSci Software Review",
      "url": "https://github.com/ropensci/software-review/issues/267"
    },
    "ropensci_category": "data-extraction"
  },
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/lightr.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ropensci/lightr",
  "_realowner": "ropensci",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2019-11-19"
    },
    {
      "version": "1.0",
      "date": "2020-01-27"
    },
    {
      "version": "1.1",
      "date": "2020-04-01"
    },
    {
      "version": "1.2",
      "date": "2020-06-29"
    },
    {
      "version": "1.3",
      "date": "2020-06-30"
    },
    {
      "version": "1.4",
      "date": "2021-03-21"
    },
    {
      "version": "1.5.0",
      "date": "2021-06-19"
    },
    {
      "version": "1.6.0",
      "date": "2021-07-22"
    },
    {
      "version": "1.6.1",
      "date": "2021-11-08"
    },
    {
      "version": "1.6.2",
      "date": "2021-11-09"
    },
    {
      "version": "1.7.0",
      "date": "2022-05-14"
    },
    {
      "version": "1.7.1",
      "date": "2024-03-21"
    },
    {
      "version": "1.8.0",
      "date": "2024-12-01"
    },
    {
      "version": "1.9.0",
      "date": "2025-07-21"
    },
    {
      "version": "2.0.0",
      "date": "2026-04-11"
    }
  ],
  "_exports": [
    "lr_convert_tocsv",
    "lr_get_metadata",
    "lr_get_spec",
    "lr_parse_abs",
    "lr_parse_avantes_abs",
    "lr_parse_avantes_irr8",
    "lr_parse_avantes_raw8",
    "lr_parse_avantes_rfl8",
    "lr_parse_avantes_roh",
    "lr_parse_avantes_trm",
    "lr_parse_avantes_trt",
    "lr_parse_avantes_ttt",
    "lr_parse_craic_spc",
    "lr_parse_csv",
    "lr_parse_generic",
    "lr_parse_irr8",
    "lr_parse_jaz",
    "lr_parse_jazirrad",
    "lr_parse_jdx",
    "lr_parse_oceanoptics_jaz",
    "lr_parse_oceanoptics_jazirrad",
    "lr_parse_oceanoptics_jdx",
    "lr_parse_oceanoptics_procspec",
    "lr_parse_oceanoptics_spc",
    "lr_parse_procspec",
    "lr_parse_raw8",
    "lr_parse_rfl8",
    "lr_parse_roh",
    "lr_parse_spc",
    "lr_parse_trm",
    "lr_parse_trt",
    "lr_parse_ttt"
  ],
  "_help": [
    {
      "page": "lr_convert_tocsv",
      "title": "Convert spectral data files to csv files",
      "topics": [
        "lr_convert_tocsv"
      ]
    },
    {
      "page": "lr_get_metadata",
      "title": "Extract metadata from spectra files",
      "topics": [
        "lr_get_metadata"
      ]
    },
    {
      "page": "lr_get_spec",
      "title": "Extract spectral data from spectra files",
      "topics": [
        "lr_get_spec"
      ]
    },
    {
      "page": "lr_parse_csv",
      "title": "Parse csv files",
      "topics": [
        "lr_parse_csv"
      ]
    },
    {
      "page": "lr_parse_generic",
      "title": "Generic function to parse spectra files that don't have a specific parser",
      "topics": [
        "lr_parse_generic"
      ]
    },
    {
      "page": "lr_parse_oceanoptics_jaz",
      "title": "Parse OceanOptics converted file",
      "topics": [
        "lr_parse_jaz",
        "lr_parse_jazirrad",
        "lr_parse_oceanoptics_jaz",
        "lr_parse_oceanoptics_jazirrad"
      ]
    },
    {
      "page": "lr_parse_oceanoptics_jdx",
      "title": "Parse OceanOptics JCAMP-DX (.jdx) file",
      "topics": [
        "lr_parse_jdx",
        "lr_parse_oceanoptics_jdx"
      ]
    },
    {
      "page": "lr_parse_oceanoptics_procspec",
      "title": "Parse OceanOptics ProcSpec file",
      "topics": [
        "lr_parse_oceanoptics_procspec",
        "lr_parse_procspec"
      ]
    },
    {
      "page": "lr_parse_craic_spc",
      "title": "Parse SPC binary file",
      "topics": [
        "lr_parse_craic_spc",
        "lr_parse_oceanoptics_spc",
        "lr_parse_spc"
      ]
    },
    {
      "page": "lr_parse_avantes_trm",
      "title": "Parse Avantes binary file",
      "topics": [
        "lr_parse_abs",
        "lr_parse_avantes_abs",
        "lr_parse_avantes_irr8",
        "lr_parse_avantes_raw8",
        "lr_parse_avantes_rfl8",
        "lr_parse_avantes_roh",
        "lr_parse_avantes_trm",
        "lr_parse_irr8",
        "lr_parse_raw8",
        "lr_parse_rfl8",
        "lr_parse_roh",
        "lr_parse_trm"
      ]
    },
    {
      "page": "lr_parse_avantes_ttt",
      "title": "Parse Avantes converted file",
      "topics": [
        "lr_parse_avantes_trt",
        "lr_parse_avantes_ttt",
        "lr_parse_trt",
        "lr_parse_ttt"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ropensci/lightr/raw/main/man/figures/logo.svg",
  "_readme": "https://github.com/ropensci/lightr/raw/main/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "digest",
    "future",
    "future.apply",
    "globals",
    "lifecycle",
    "listenv",
    "parallelly",
    "progressr",
    "rlang",
    "xml2"
  ],
  "_vignettes": [
    {
      "source": "batch_import.Rmd",
      "filename": "batch_import.html",
      "title": "Batch import with lr_get_spec() and lr_get_metadata()",
      "author": "Hugo Gruson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Import spectral data: lr_get_spec()",
        "Import spectral metadata: lr_get_metadata()",
        "Convert spectral data to csv: lr_convert_tocsv()"
      ],
      "created": "2018-11-23 12:48:29",
      "modified": "2025-07-08 17:42:28",
      "commits": 19
    },
    {
      "source": "design-principles.Rmd",
      "filename": "design-principles.html",
      "title": "Design Principles for lightr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Scope",
        "Architecture",
        "Naming conventions"
      ],
      "created": "2025-05-29 14:34:38",
      "modified": "2025-07-25 10:26:16",
      "commits": 5
    },
    {
      "source": "true_example.Rmd",
      "filename": "true_example.html",
      "title": "Real life example",
      "author": "Hugo Gruson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Comparison of outputs",
        "Example of analysis"
      ],
      "created": "2019-09-02 15:31:22",
      "modified": "2025-07-08 17:42:28",
      "commits": 14
    },
    {
      "source": "renormalise.Rmd",
      "filename": "renormalise.html",
      "title": "Renormalise spectral data with a custom reference",
      "author": "Hugo Gruson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Step 1: import un-normalised data",
        "Step 2: find the matching white reference",
        "Step 3: normalise the reflectance data"
      ],
      "created": "2018-12-13 12:53:47",
      "modified": "2025-07-25 10:26:16",
      "commits": 10
    }
  ],
  "_score": 8.199587349234784,
  "_indexed": true,
  "_nocasepkg": "lightr",
  "_universes": [
    "ropensci",
    "bisaloo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-05-13T09:36:27.000Z",
      "distro": "noble",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "2affffcd43148af3782e029872cef32a84323f30a3b0a816a0b6ce02dc3c1727",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-05-13T09:35:57.000Z",
      "distro": "noble",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "a2c9870daeedf840485d6fde44f3e4fc3d713a5a4d4884c8260f8426413a0a8c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-05-13T09:35:11.000Z",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "37f500762db5c3362596b6114c7da1ce42e6648cc6bb00ce7f29031cfc12b9d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-05-13T09:35:51.000Z",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "ff51aff7dc90e80ccb4b3eb74b42b9a74cc6088d74dfb2c2d1973cf5d5683bf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-13T09:35:39.000Z",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "1e8a74d2923d6601d058121561b5e1b418e512e9a809b125626b9f9ee25fc8dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-13T09:34:47.000Z",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "0bc4c237f1a066fdb15c5bb9fbaa12d75ec6ff9ebbe2dbb0da3bcc7536243b7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-13T09:34:46.000Z",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "6523d0084a7670306b90ed8ce8630ca6ab21f3e7a86a8a9c1d75a0c60f65274e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.0",
      "date": "2026-05-22T09:44:07.000Z",
      "commit": "49beead53e059da587feb49559d74b6cd93f9962",
      "fileid": "4d4a531b3a718eac237fb4938acbd99bf896bc873d12630f4ef1030e8e3dc079",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/25790604883"
    }
  ]
}