• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NRCan / PlotFTIR / 35339470905
98%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2026 11:26AM UTC
Jobs 3
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2026 11:24AM UTC coverage: 99.003% (+0.9%) from 98.141%
35339470905

push

github

web-flow
Add Raman spectra capabilities, closes #34 (#42)

* Add Raman spectra capabilities, closes #34

- Add read_raman() for RRUFF-style Raman data with ##FILETYPE=Raman headers
- Add plot_raman(), plot_raman_stacked() with non-reversed x-axis (increasing wavenumber)
- Add smooth_spectra() using signal::sgolayfilt() for Savitzky-Golay smoothing
- Add baseline_correct() using baseline::als() for Asymmetric Least Squares correction
- Add normalize_raman() for L2 vector norm and max intensity scaling
- Add find_peak_maxima() with optional FWHM computation
- Extend check_ftir_data() to accept 'raman' and 'normalized raman' intensity types
- Update DESCRIPTION, NAMESPACE, documentation, and add comprehensive test coverage

* Cleanup repo

* Testing & Validation

* Adding other raman data file formats and tests

* CMD Check requirements

* Improving Test Coverage

* Solving pkgdown complaints

* Apply suggestions from code review

* Resolving Copilot comments

* Fixed tests and checks.

* Updates to the FWHM algorithm.

* Additional raman-related tests & pkgdown update

* Updated Tests & Fixes

* Address PR review feedback for Raman capabilities

Fix correctness issues found in review of #42:

* Fix `sample_ids = NULL` crash caused by `is.na(NULL)` being tested
  before `is.null()`; extract the duplicated guard into the shared
  `.resolve_sample_ids()` helper.
* Reconcile `baseline_correct()`'s `lambda` default with its docs.
  `baseline::baseline.als()` treats lambda as a base-10 exponent, so the
  documented 1e6 smoothing penalty is `lambda = 6`, not 10.
* Whitelist `raman`/`normalized raman` in `smooth_spectra()` and
  `baseline_correct()` so FTIR data is rejected rather than silently
  Raman-processed.
* Make `plot_raman_stacked()`'s y-axis label bilingual.
* `read_raman_csv()` now reports true file line numbers, warns about
  malformed rows instead of dropping them silently, and parses single-#
  WiRE headers into `raman_metadata`.
* Set the `intensity` attr... (continued)

963 of 980 new or added lines in 8 files covered. (98.27%)

1 existing line in 1 file now uncovered.

3477 of 3512 relevant lines covered (99.0%)

121.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
96.2
R/raman_utils.R
1
99.48
R/plot_raman.R

Coverage Regressions

Lines Coverage ∆ File
1
98.96
2.94% R/io.R
Jobs
ID Job ID Ran Files Coverage
1 test-coverage-hard - 35339470905.1 18 Sep 2026 11:26AM UTC 8
58.54
GitHub Action Run
2 test-coverage - 35339470905.2 18 Sep 2026 11:26AM UTC 8
91.09
GitHub Action Run
3 test-coverage-half-hard - 35339470905.3 18 Sep 2026 11:27AM UTC 8
78.56
GitHub Action Run
Source Files on build 35339470905
  • Tree
  • List 8
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35339470905
  • 59e8a9e5 on github
  • Prev Build on main (#35254724237)
  • Next Build on main (#35378403971)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc