Package: luxR Type: Package Title: Underwater Light Analysis and Visual Ecology Version: 0.1.1 Date: 2026-07-29 Authors@R: person(given = c("John", "D"), family = "Kirwan", role = c("aut", "cre"), email = "jkirwan+luxR@pm.me") Description: Tools for quantifying and modelling underwater light environments. Propagates spectral irradiance through the water column via Beer-Lambert attenuation, computes photosynthetically active radiation (PAR), and converts between energy and photon-flux units. Provides the 'lux_spectrum' S3 class for unit-safe spectral arithmetic and format readers for TriOS RAMSES and Ocean Optics instruments. The optional 'lightr' package parses further instrument formats into strict native records; explicit measurement, scale, calibration, and resampling policies govern conversion via read_spectrum(). Spectra convert to and from the generic spectral classes of the optional 'photobiology' package, which also serves as the reference implementation luxR's integration and photometry are validated against. Includes visual ecology utilities: Govardovskii (2000) visual-pigment templates, photoreceptor quantum catch, Vorobyev-Osorio colour discrimination (JND), Secchi depth, and explicitly unvalidated contrast-threshold distance scenarios. License: GPL (>= 3) URL: https://johnkirwan.github.io/luxR/, https://github.com/JohnKirwan/luxR BugReports: https://github.com/JohnKirwan/luxR/issues Encoding: UTF-8 LazyData: true RoxygenNote: 8.0.0 Depends: R (>= 3.5.0) Imports: graphics, stats, utils, Rdpack RdMacros: Rdpack Suggests: testthat (>= 3.0.0), shiny (>= 1.7.0), lightr (>= 2.0.0), pavo (>= 2.9.0), photobiology (>= 0.11.0), colourvision (>= 2.0.0), knitr, rmarkdown, pkgdown VignetteBuilder: knitr Config/testthat/edition: 3 Config/roxygen2/version: 8.0.0 Repository: https://johnkirwan.r-universe.dev Date/Publication: 2026-07-29 21:25:56 UTC RemoteUrl: https://github.com/JohnKirwan/luxR RemoteRef: HEAD RemoteSha: 75ae5c201a47cf658f3ea43bb9ef75689be01158 NeedsCompilation: no Packaged: 2026-09-27 10:46:18 UTC; root Author: John D Kirwan [aut, cre] Maintainer: John D Kirwan