Skip to content

lightr

2.1.0Package record

Read Spectrometric Data and Metadata

1packages depend
10.3Kdownloads / year
90.2%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2.1.0

New features

  • lr_get_spec(), lr_get_metadata() and lr_convert_tocsv() have a new parser argument. 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 faster
  • lr_parse_oceanoptics_jaz: ~1.5x faster

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.1.0
READMEYes · 870 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 2.1.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JOSS paper
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

10.3K
CRAN downloads in the past year
Rank #3,968 · ~28/day · ~861/mo
Daily download trend is not available in this view yet.
76930 days
2.3K90 days
10.3K1 year
Compare downloads with other packages →
Also on164 r2u5 autocran

Repository

15Stars
1Forks
14Open issues
2Open PRs
16Releases
865Commits
34Commit identities
rspectroscopyspectral-datareproducible-researchreproducible-sciencereproducibilityr-packagefile-import
License file reads as GPL-2.0 · 865 commits · Last activity 2026-09-25 · 0% stars, 30d · Default branch at 2.1.0.9000, ahead of CRAN 2.1.0 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2025-10-22 · 142026-07-07 · 15
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conduct (inherited from ropensci)Contributing guide
Docs source (2)
pkgdown

GitHub Pages site last deployed 2019-10-21

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 4 practices
CRAN release process (1)
cran-comments.md
Research and citation (1)
codemeta.json
Lint, format, editor (5)
lintrLint workflowAirVS CodeRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-07-18
    Pull request: opened by its own account
    Commits: 2 by its own account · at least 2 crediting it in the message
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.0.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
2indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (4)
Maintainer since 0.1 (2019), Author, Copyright holder
Author, Copyright holder
Author, Copyright holder
Contributor, Copyright holder
Author of the MATLAB script to read AvaSoft7 binary files (CC-BY)
Releases (16)

Pick two releases to compare their code metrics.

  • 2.1.0Latest
    record
    2026-07-06 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.0
    record
    2026-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
    record
    2025-07-21 · diff ↗ ·
    added 1 export
    lr_parse_csv
  • R
    R 4.5.0 released · 2025-04-11
  • 1.8.0
    record
    2024-12-01 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.7.1
    record
    2024-03-21 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.7.0
    record
    2022-05-14 · diff ↗ ·
    added 1 export
    lr_parse_irr8
  • R
    R 4.2.0 released · 2022-04-22
  • 1.6.2
    record
    2021-11-08 · diff ↗
  • 1.6.1
    record
    2021-11-08 · diff ↗
  • 1.6.0
    record
    2021-07-22 · diff ↗
  • 1.5.0
    record
    2021-06-19 · diff ↗
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for lightr version 2.1.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy