leafwax: Bayesian Inversion of Leaf Wax Hydrogen Isotopes to Precipitation

Bayesian inversion of leaf wax hydrogen isotopes to reconstruct precipitation isotopes using hierarchical spatial models. Provides fourteen Bayesian models that vary in their use of spatial Gaussian processes and ancillary covariates (precipitation amount, plant functional type, C4 fraction). Models are pre-computed using 'Stan' and stored as posterior distributions, so prediction does not require 'Stan' to be installed. A 100-draw fixture ships with the package; full 1000-draw posteriors are downloaded from a versioned 'Zenodo' deposit on first use; see Bradley (2026) <doi:10.5281/zenodo.20085465>.

Version: 0.2.7
Depends: R (≥ 3.5.0)
Imports: jsonlite, stats, utils
Suggests: rappdirs, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-06-15
DOI: 10.32614/CRAN.package.leafwax (may not be active yet)
Author: Alex Bradley ORCID iD [aut, cre]
Maintainer: Alex Bradley <abradley at wustl.edu>
BugReports: https://github.com/bradleylab/leafwax/issues
License: MIT + file LICENSE
URL: https://github.com/bradleylab/leafwax, https://bradleylab.github.io/leafwax/
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: leafwax results

Documentation:

Reference manual: leafwax.html , leafwax.pdf
Vignettes: When can a leaf-wax record support a precipitation-isotope claim? (source, R code)

Downloads:

Package source: leafwax_0.2.7.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): leafwax_0.2.7.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=leafwax to link to this page.