Subject: [bug#57270] [PATCH] gnu: Add r-prospectr.

From: Wiktor Żelazny <[email-masked]>
Date: Thu, 18 Aug 2022 09:48:39 +0200

From: Wiktor Żelazny <[email-masked]>

* gnu/packages/cran.scm (r-prospectr): New variable.
---
 gnu/packages/cran.scm | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index e03b707162..75d856b2fc 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -17,7 +17,7 @@
 ;;; Copyright © 2018 Marius Bakke <[email-masked]>
 ;;; Copyright © 2018, 2019 Brett Gilio <[email-masked]>
 ;;; Copyright © 2019 Nicolò Balzarotti <[email-masked]>
-;;; Copyright © 2019, 2020, 2021 Wiktor Żelazny <[email-masked]>
+;;; Copyright © 2019, 2020, 2021, 2022 Wiktor Żelazny <[email-masked]>
 ;;; Copyright © 2019 Arne Babenhauserheide <[email-masked]>
 ;;; Copyright © 2019, 2020 Efraim Flashner <[email-masked]>
 ;;; Copyright © 2020 Todor Kondić <[email-masked]>
@@ -34296,3 +34296,30 @@ (define-public r-sungeo
      "Tools for integrating spatially-misaligned GIS datasets.  Part of the
 Sub-National Geospatial Data Archive System.")
     (license license:gpl2)))
+
+(define-public r-prospectr
+  (package
+    (name "r-prospectr")
+    (version "0.2.5")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "prospectr" version))
+              (sha256
+               (base32
+                "0zwbmnfinjr1hdhlsydgphkp5hqr6yh9zmbbbhj7gadl10mmai4f"))))
+    (properties `((upstream-name . "prospectr")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-foreach
+                             r-iterators
+                             r-rcpp
+                             r-mathjaxr
+                             r-lifecycle
+                             r-rcpparmadillo))
+    (home-page "https://cran.r-project.org/web/packages/prospectr/")
+    (synopsis "Functions for processing and sample selection of spectroscopic
+data")
+    (description
+     "@code{prospectr} provides miscellaneous functions to preprocess
+spectroscopic data and conduct representative sample selection, or
+calibration sampling.")
+    (license license:expat)))

base-commit: 741c8efd6a85150359578610e492c6731fd34a03
-- 
2.37.2