Skip to content

prospectr

0.2.11Package record

Miscellaneous Functions for Processing and Sample Selection of Spectroscopic Data

5packages dependsuggested by 5
21Kdownloads / year
85.2%test coverage
13/13flavors OK

Overview

About

Functions to preprocess spectroscopic data and conduct (representative) sample selection/calibration sampling.

Changes in 0.2.11

Bug fixes

  • read_nircal(): fixed a failure when reading files whose sample IDs contain non-ASCII characters. NIRCal stores text in a Windows single-byte codepage (CP1252/latin1), but those bytes were passed to enc2utf8(), which honours the declared encoding of the input and therefore performs no conversion at all on strings read with readBin(). In a UTF-8 locale the bytes were then left invalid and nchar() aborted with invalid multibyte string. The record-number prefix is now stripped byte-wise and the text converted explicitly, so IDs such as Adubo Líquido_Tanque 05 - 18/02/2022 are read correctly, including their internal slashes (#94).
  • read_nircal(): fixed a failure when the names of the response variables contain regular expression metacharacters. The names are used to locate the sample blocks in the raw file and were interpolated into the search pattern unescaped, so names such as Ca++ or Mg++ aborted the read with invalid use of repetition operators. Names containing (, ) or + (for example P (Resina) or H+Al) were affected more quietly: the pattern remained valid but no longer matched the file, and the corresponding blocks were never found. Metacharacters are now escaped before the search (#94).
Show all changes in 0.2.11Hide the rest of the changes in 0.2.11
  • read_nircal(): fixed corruption of accented response variable names. These were converted with iconv(from = "ASCII", sub = "byte"), which replaces each non-ASCII byte with its hex escape as literal text, so a variable named Matéria Orgânica was returned as Mat<e9>ria Org<e2>nica. Conversion now uses the encoding the files are actually written in (#94).
  • read_nircal(): fixed the renaming of duplicated response variable names. The index was compared against the full vector of duplicated names rather than the one being processed, so files carrying two or more distinct duplicated names were labelled incorrectly (#94).

Internal

  • Continuous integration moved to GitHub Actions (R-CMD-check, pkgdown, rhub and test coverage workflows).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR10 OK, 2 NOTE, 2 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.11
READMEYes · 436 wordsVignettesYes · 3 · dynamicNEWSYes · 67% structured · mentions 0.2.11Citation fileYes · computed when R runs itWebsiteYes · pkgdown
Help pages
42 (17 internal)includes a package overview page
Examples that run
65%13 run in a plain check · 7 never run
Exported functions with examples
83%
Documented parameters
100%
Return-value docs
96%
Help pages citing references
43%

Downloads

21K
CRAN downloads in the past year
Rank #3,008 · ~58/day · ~1.8K/mo
Daily download trend is not available in this view yet.
1.6K30 days
4.5K90 days
21K1 year
Compare downloads with other packages →
Also on499 r2u3 autocran116 c2d4u

Repository

47Stars
20Forks
6Open issues
0Open PRs
10Releases
323Commits
5Commit identities
chemometricsspectroscopynear-infraredsamplingpedometricssoil-spectroscopynirsignal
323 commits · Last activity 2026-08-24 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
96%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-05-28 · 442026-07-26 · 47
PracticesBeta

12 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/l-ramirez-lopez/prospectr on 2026-10-21.

Continuous integration (3)
GitHub ActionsR CMD check workflowAppVeyor

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

Governance and community (2)
Code of conductContributing guide
Docs source (4)
README.qmdpkgdown

GitHub Pages site last deployed 2026-08-26 · The repository has a site deploy workflow

pkgdown site last built 2026-08-26

Coverage (1)
Coverage reporting
Show all practicesHide 1 practice
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-10-17
    Pull request: opened by its own account
    Commits: 6 by its own account
  • Claude Codefirst seen 2026-05-18
    Pull request it wrote: opened by a project member
    Commits: at least 1 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
11 external dependencies (excludes base and recommended)

Installing prospectr adds 8 packages (4 with compiled code, 7.6 MB of source tarballs). Heaviest: mathjaxr 3.0 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.

Depends (1)
R >= 3.5.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
5direct
0indirect
Imports 5
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 0.2.0 (2020)

Previously maintained by Antoine Stevens (0.1 to 0.1.3).

Listed in earlier versions (1)
Guillaume Hans
no longer listed · 0.2.1 to 0.2.6
Releases (15)

Pick two releases to compare their code metrics.

Show 15 earlier eventsHide 15 earlier events
  • 0.2.1
    record
    2020-10-23 · diff ↗ ·
    added 1 export
    msc
  • R
    R 4.0.0 released · 2020-04-24
  • unarchivedReturned to CRAN
    2020-03-14
  • 0.2.0
    record
    2020-03-14 · diff ↗ ·
    added 1 export
    read_nircal
  • archivedRemoved from CRAN
    2020-03-07
    check problems were not corrected despite reminders
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 0.1.3
    record
    2014-02-14 · diff ↗
  • 0.1.1
    record
    2013-12-09 · diff ↗
  • 0.1
    record
    2013-08-14
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2013-08-14
Total releases
15 / 13 yrs
License
MIT + file LICENSE OSI · relicensed from GPL (>= 3) in 0.2.1
Minimum R
≥ 3.5.0
Bundled data
1.9 MB / 1 file
Download size
6.2 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("prospectr")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 prospectr version 0.2.11 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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