Read Spectrometric Data and Metadata
Overview
Parse various reflectance/transmittance/absorbance spectra file formats to extract spectral data and metadata, as described in Gruson, White & Maia (2019) doi:10.21105/joss.01857. Among other formats, it can import files from 'Avantes' https://www.avantes.com/, 'CRAIC' https://www.microspectra.com/, and 'OceanOptics'/'OceanInsight' https://www.oceanoptics.com/ brands.
New features
lr_get_spec(),lr_get_metadata()andlr_convert_tocsv()have a newparserargument. This argument can be used to force the use of a specific parser defined in this package, or to pass a custom parser function defined by the user (#3).
Minor changes
- Performance improvements:
lr_parse_oceanoptics_jdx: ~2x fasterlr_parse_oceanoptics_jaz: ~1.5x faster
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 14 (3 internal)includes a package overview page
- Examples that run
- 90%9 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 91%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 21%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
15 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/ropensci/lightr on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2019-10-21
Show all practicesHide 4 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-07-18Pull request: opened by its own accountCommits: 2 by its own account · at least 2 crediting it in the message
Dependencies
Installing lightr adds 11 packages (5 with compiled code, 3.5 MB of source tarballs). Heaviest: rlang 766 KB, progressr 650 KB, cli 629 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 2.1.0Latest
- RR 4.6.0 released · 2026-04-24
- 2.0.02026-04-11 · diff ↗ ·
added 14 exports
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_oceanoptics_jaz, lr_parse_oceanoptics_jazirrad, lr_parse_oceanoptics_jdx, lr_parse_oceanoptics_procspec, lr_parse_oceanoptics_spc - 1.9.0
- RR 4.5.0 released · 2025-04-11
- 1.8.02024-12-01 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.7.12024-03-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.7.0
- RR 4.2.0 released · 2022-04-22
- 1.6.22021-11-08 · diff ↗
- 1.6.12021-11-08 · diff ↗
- 1.6.02021-07-22 · diff ↗
- 1.5.02021-06-19 · diff ↗
- RR 4.1.0 released · 2021-05-18
Show 8 earlier eventsHide 8 earlier events
Package metadata
- First published
- 2019-11-19
- Total releases
- 16 / 7 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 5.0 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("lightr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.01857.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.