Package: lightr 1.9.0.9000
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:
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
file-importreproducibilityreproducible-researchreproducible-sciencespectral-dataspectroscopy
Last updated from:b55813e3d5 (on main). Checks:11 OK. Indexed: yes.
Target | Result | Total time | Artifact |
---|---|---|---|
linux-devel-x86_64 | OK | 150 | |
pkgdown docs | OK | 169 | |
source / vignettes | OK | 183 | |
linux-release-x86_64 | OK | 141 | |
macos-release-arm64 | OK | 103 | |
macos-oldrel-arm64 | OK | 120 | |
windows-devel | OK | 93 | |
windows-release | OK | 105 | |
windows-oldrel | OK | 111 | |
wasm-release | OK | 113 | |
wasm-oldrel | OK | 155 |
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.Rmd
usingknitr::rmarkdown
on Aug 12 2025.Last update: 2025-07-08
Started: 2018-11-23
Design Principles for lightr
Rendered fromdesign-principles.Rmd
usingknitr::rmarkdown
on Aug 12 2025.Last update: 2025-07-25
Started: 2025-05-29
Real life example
Rendered fromtrue_example.Rmd
usingknitr::rmarkdown
on Aug 12 2025.Last update: 2025-07-08
Started: 2019-09-02
Renormalise spectral data with a custom reference
Rendered fromrenormalise.Rmd
usingknitr::rmarkdown
on Aug 12 2025.Last update: 2025-07-25
Started: 2018-12-13
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Convert spectral data files to csv files | lr_convert_tocsv |
Extract metadata from spectra files | lr_get_metadata |
Extract spectral data from spectra files | lr_get_spec |
Parse csv files | lr_parse_csv |
Generic function to parse spectra files that don't have a specific parser | lr_parse_generic |
Parse OceanOptics converted file | lr_parse_jaz lr_parse_jazirrad lr_parse_oceanoptics_jaz lr_parse_oceanoptics_jazirrad |
Parse OceanOptics JCAMP-DX (.jdx) file | lr_parse_jdx lr_parse_oceanoptics_jdx |
Parse OceanOptics ProcSpec file | lr_parse_oceanoptics_procspec lr_parse_procspec |
Parse SPC binary file | lr_parse_craic_spc lr_parse_oceanoptics_spc lr_parse_spc |
Parse Avantes binary file | 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 |
Parse Avantes converted file | lr_parse_avantes_trt lr_parse_avantes_ttt lr_parse_trt lr_parse_ttt |