Package: lightr 1.8.0.9000

Hugo Gruson

lightr: Read Spectrometric Data and Metadata

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.

Authors:Hugo Gruson [cre, aut, cph], Rafael Maia [aut, cph], Thomas White [aut, cph], Kotya Karapetyan [ctb, cph]

lightr_1.8.0.9000.tar.gz
lightr_1.8.0.9000.zip(r-4.5)lightr_1.8.0.9000.zip(r-4.4)lightr_1.8.0.9000.zip(r-4.3)
lightr_1.8.0.9000.tgz(r-4.5-any)lightr_1.8.0.9000.tgz(r-4.4-any)lightr_1.8.0.9000.tgz(r-4.3-any)
lightr_1.8.0.9000.tar.gz(r-4.5-noble)lightr_1.8.0.9000.tar.gz(r-4.4-noble)
lightr_1.8.0.9000.tgz(r-4.4-emscripten)lightr_1.8.0.9000.tgz(r-4.3-emscripten)
lightr.pdf |lightr.html
lightr/json (API)
NEWS

# Install 'lightr' in R:
install.packages('lightr', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #267

Bug tracker:https://github.com/ropensci/lightr/issues

Pkgdown site:https://docs.ropensci.org

On CRAN:lightr-1.8.0(2024-12-01)

Conda:

file-importreproducibilityreproducible-researchreproducible-sciencespectral-dataspectroscopy

7.11 score 13 stars 2 packages 11 scripts 817 downloads 17 exports 11 dependencies

Last updated 1 months agofrom:0cea224a22 (on main). Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 14 2025
R-4.5-winOKMar 14 2025
R-4.5-macOKMar 14 2025
R-4.5-linuxOKMar 14 2025
R-4.4-winOKMar 14 2025
R-4.4-macOKMar 14 2025
R-4.4-linuxOKMar 14 2025
R-4.3-winOKMar 14 2025
R-4.3-macOKMar 14 2025

Exports:lr_convert_tocsvlr_get_metadatalr_get_speclr_parse_abslr_parse_genericlr_parse_irr8lr_parse_jazlr_parse_jazirradlr_parse_jdxlr_parse_procspeclr_parse_raw8lr_parse_rfl8lr_parse_rohlr_parse_spclr_parse_trmlr_parse_trtlr_parse_ttt

Dependencies:clicodetoolsdigestfuturefuture.applyglobalslistenvparallellyprogressrrlangxml2

Batch import with lr_get_spec() and lr_get_metadata()

Rendered frombatch_import.Rmdusingknitr::rmarkdownon Mar 14 2025.

Last update: 2022-11-05
Started: 2018-11-23

Real life example

Rendered fromtrue_example.Rmdusingknitr::rmarkdownon Mar 14 2025.

Last update: 2024-12-01
Started: 2019-09-02

Renormalise spectral data with a custom reference

Rendered fromrenormalise.Rmdusingknitr::rmarkdownon Mar 14 2025.

Last update: 2024-07-11
Started: 2018-12-13

Citation

To cite lightr in publications use:

Gruson H, White T, Maia R (2019). “lightr: import spectral data and metadata in R.” Journal of Open Source Software, 4(43), 1857. doi:10.21105/joss.01857, https://doi.org/10.21105/joss.01857.

Corresponding BibTeX entry:

  @Article{,
    doi = {10.21105/joss.01857},
    url = {https://doi.org/10.21105/joss.01857},
    year = {2019},
    publisher = {The Open Journal},
    volume = {4},
    number = {43},
    pages = {1857},
    author = {Hugo Gruson and Thomas White and Rafael Maia},
    title = {lightr: import spectral data and metadata in R},
    journal = {Journal of Open Source Software},
  }