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

NRCan / PlotFTIR / 35378403971
98%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2026 06:10PM UTC
Jobs 3
Files 9
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 06:08PM UTC coverage: 97.541% (-1.5%) from 99.003%
35378403971

push

github

web-flow
Add Peak Detection and Deconvolution  (#36)

* Copied peak-fit and tests from ftirtools

* Adapted peak-fit.R and tests into project from FTIRtools

* Update Skills for calarity

* Merge resolution

* Add documentation for FTIR peak analysis functions

- Created documentation for `find_ftir_peaks` to detail peak finding in FTIR spectra.
- Added `fit_peaks` documentation to explain peak fitting methods and parameters.
- Introduced `fit_peak_df` for converting fitted peak objects to data frames.
- Documented `get_fit_method` and `get_fit_spectra` for retrieving fitting details.
- Added `plot_components`, `plot_fit_ftir_peaks`, and `plot_fit_residuals` for visualizing peak fitting results.
- Included French translations for all documentation entries to support bilingual users.

* Refactor peak-fit internals and tests

Renames several peak-fitting helper functions to internal-style names (prefixed with `.`) and updates call sites, tightens `method` validation in `fit_peaks()` with `rlang::arg_match()`, and refreshes roxygen tags/parameter docs. Test coverage is updated to match fitted peak expectations, add validation for even `sg_n_norm`, and make plot-label assertions less brittle.

* Update peak-fit.R

* added lint file

* refactor(peak-fit): migrate process_language to utils.R, fix internal fn calls, standardize cli errors, add @inheritParams for call param

* Updates for Review Comments

Adds explicit `signal` dependency checks in peak detection, preserves validated `ftir` objects across peak-fit plotting helpers, and fixes auto-peak argument forwarding in `fit_peaks()` via `do.call()`. It also removes `tibble::as_tibble()` usage from `fit_peak_df()` and cleans up package imports accordingly. Additional updates tighten `.process_language()` handling for `NULL`/empty inputs and make peak-fit tests call internal EM helpers explicitly through `PlotFTIR:::`.

* add vignette for peak fitting workflow with biodiesel dataset (@pbulsink, #noissue).

* Minor ... (continued)

1535 of 1626 new or added lines in 6 files covered. (94.4%)

4997 of 5123 relevant lines covered (97.54%)

1917.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
76
95.06
R/peak-fit.R
15
92.35
-7.65% R/plot_ftir.R
Jobs
ID Job ID Ran Files Coverage
1 test-coverage-hard - 35378403971.1 18 Sep 2026 06:10PM UTC 9
54.75
GitHub Action Run
2 test-coverage-half-hard - 35378403971.2 18 Sep 2026 06:11PM UTC 9
68.51
GitHub Action Run
3 test-coverage - 35378403971.3 18 Sep 2026 06:10PM UTC 9
91.86
GitHub Action Run
Source Files on build 35378403971
  • Tree
  • List 9
  • Changed 5
  • Source Changed 5
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35378403971
  • 04bac4ea on github
  • Prev Build on main (#35339470905)
  • Next Build on main (#35597757469)
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