Package: nirs4allformats 0.2.11

Gregory Beurier

nirs4allformats: Read Near-Infrared Spectroscopy and Spectral File Formats

Thin 'R' binding for the 'nirs4all-formats' near-infrared spectroscopy (NIRS) file-loading core written in 'Rust'. When installed via 'R CMD INSTALL' with 'Cargo' available, the package compiles a native 'extendr' static library from 'src/rust/' and dispatches probe, read, and walk calls directly through 'Rust'. Without 'Cargo' it falls back to invoking the 'nirs4all-formats' command-line interface. This is the complete build: it ships every reader, including the optional large ones ('HDF5'/'netCDF', 'Parquet'/'Arrow', 'MATLAB') on top of the core readers ('JCAMP-DX', 'Galactic SPC', 'Bruker OPUS', 'ASD', 'ENVI', 'CSV', 'Excel', and many vendor ASCII/binary formats). A smaller sibling package 'nirs4allformats.lite' drops only the 'Parquet'/'Arrow' reader for size-sensitive installs.

Authors:Gregory Beurier [aut, cre]

nirs4allformats_0.2.11.tar.gz
nirs4allformats_0.2.11.zip(r-4.7-x86_64)nirs4allformats_0.2.11.zip(r-4.6-x86_64)nirs4allformats_0.2.11.zip(r-4.5-x86_64)
nirs4allformats_0.2.11.tgz(r-4.6-x86_64)nirs4allformats_0.2.11.tgz(r-4.6-arm64)nirs4allformats_0.2.11.tgz(r-4.5-x86_64)nirs4allformats_0.2.11.tgz(r-4.5-arm64)
nirs4allformats_0.2.11.tar.gz(r-4.7-arm64)nirs4allformats_0.2.11.tar.gz(r-4.7-x86_64)nirs4allformats_0.2.11.tar.gz(r-4.6-arm64)nirs4allformats_0.2.11.tar.gz(r-4.6-x86_64)
nirs4allformats_0.2.11.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
nirs4allformats/json (API)

# Install 'nirs4allformats' in R:
install.packages('nirs4allformats', repos = c('https://gbeurier.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gbeurier/nirs4all-formats/issues

On CRAN:

Conda:

rustcargo

4.23 score 24 stars 6 scripts 9 exports 1 dependencies

Last updated from:8c6acd6b02. Checks:13 OK, 2 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK264
linux-devel-x86_64OK297
source / vignettesOK370
linux-release-arm64OK263
linux-release-x86_64OK285
macos-release-arm64OK338
macos-release-x86_64OK680
macos-oldrel-arm64OK299
macos-oldrel-x86_64OK604
windows-devel-arm64FAIL308
windows-devel-x86_64OK541
windows-release-arm64FAIL286
windows-release-x86_64OK489
windows-oldrel-x86_64OK501
wasm-releaseOK283

Exports:nirs4allformats_as_tibblenirs4allformats_native_availablenirs4allformats_open_bytesnirs4allformats_open_datasetnirs4allformats_open_recordsnirs4allformats_open_with_sidecarsnirs4allformats_probe_pathnirs4allformats_versionnirs4allformats_walk_path

Dependencies:jsonlite

Readme and manuals

Help Manual

Help pageTopics
Build a wide data frame from a datasetas.data.frame.nirs4allformats_dataset
Extract the spectral matrix from a datasetas.matrix.nirs4allformats_dataset
Convert a dataset to a tibblenirs4allformats_as_tibble
Report whether the native Rust backend is loadednirs4allformats_native_available
Decode raw bytes through the native registrynirs4allformats_open_bytes
Read a spectroscopy file into a flat spectral datasetnirs4allformats_open_dataset
Read a spectroscopy file into normalized recordsnirs4allformats_open_records
Decode raw bytes with companion sidecar filesnirs4allformats_open_with_sidecars
List candidate readers for a filenirs4allformats_probe_path
Report the nirs4allformats binding versionnirs4allformats_version
Walk a directory and report per-file outcomesnirs4allformats_walk_path