Package: lightr 1.9.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.9.0.9000.tar.gz
lightr_1.9.0.9000.zip(r-4.6)lightr_1.9.0.9000.zip(r-4.5)lightr_1.9.0.9000.zip(r-4.4)
lightr_1.9.0.9000.tgz(r-4.5-any)lightr_1.9.0.9000.tgz(r-4.4-any)
lightr_1.9.0.9000.tar.gz(r-4.6-any)lightr_1.9.0.9000.tar.gz(r-4.5-any)
lightr_1.9.0.9000.tgz(r-4.5-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:

Conda:

file-importreproducibilityreproducible-researchreproducible-sciencespectral-dataspectroscopy

7.70 score 13 stars 2 packages 12 scripts 845 downloads 32 exports 13 dependencies

Last updated from:b55813e3d5 (on main). Checks:11 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK150
pkgdown docsOK169
source / vignettesOK183
linux-release-x86_64OK141
macos-release-arm64OK103
macos-oldrel-arm64OK120
windows-develOK93
windows-releaseOK105
windows-oldrelOK111
wasm-releaseOK113
wasm-oldrelOK155

Exports:lr_convert_tocsvlr_get_metadatalr_get_speclr_parse_abslr_parse_avantes_abslr_parse_avantes_irr8lr_parse_avantes_raw8lr_parse_avantes_rfl8lr_parse_avantes_rohlr_parse_avantes_trmlr_parse_avantes_trtlr_parse_avantes_tttlr_parse_craic_spclr_parse_csvlr_parse_genericlr_parse_irr8lr_parse_jazlr_parse_jazirradlr_parse_jdxlr_parse_oceanoptics_jazlr_parse_oceanoptics_jazirradlr_parse_oceanoptics_jdxlr_parse_oceanoptics_procspeclr_parse_oceanoptics_spclr_parse_procspeclr_parse_raw8lr_parse_rfl8lr_parse_rohlr_parse_spclr_parse_trmlr_parse_trtlr_parse_ttt

Dependencies:clicodetoolsdigestfuturefuture.applyglobalsgluelifecyclelistenvparallellyprogressrrlangxml2

Batch import with lr_get_spec() and lr_get_metadata()

Rendered frombatch_import.Rmdusingknitr::rmarkdownon Aug 12 2025.

Last update: 2025-07-08
Started: 2018-11-23

Design Principles for lightr

Rendered fromdesign-principles.Rmdusingknitr::rmarkdownon Aug 12 2025.

Last update: 2025-07-25
Started: 2025-05-29

Real life example

Rendered fromtrue_example.Rmdusingknitr::rmarkdownon Aug 12 2025.

Last update: 2025-07-08
Started: 2019-09-02

Renormalise spectral data with a custom reference

Rendered fromrenormalise.Rmdusingknitr::rmarkdownon Aug 12 2025.

Last update: 2025-07-25
Started: 2018-12-13

Readme and manuals

Help Manual

Help pageTopics
Convert spectral data files to csv fileslr_convert_tocsv
Extract metadata from spectra fileslr_get_metadata
Extract spectral data from spectra fileslr_get_spec
Parse csv fileslr_parse_csv
Generic function to parse spectra files that don't have a specific parserlr_parse_generic
Parse OceanOptics converted filelr_parse_jaz lr_parse_jazirrad lr_parse_oceanoptics_jaz lr_parse_oceanoptics_jazirrad
Parse OceanOptics JCAMP-DX (.jdx) filelr_parse_jdx lr_parse_oceanoptics_jdx
Parse OceanOptics ProcSpec filelr_parse_oceanoptics_procspec lr_parse_procspec
Parse SPC binary filelr_parse_craic_spc lr_parse_oceanoptics_spc lr_parse_spc
Parse Avantes binary filelr_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
Parse Avantes converted filelr_parse_avantes_trt lr_parse_avantes_ttt lr_parse_trt lr_parse_ttt