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

From: Wiktor Żelazny <[email-masked]>
Date: Fri, 7 Oct 2022 15:38:19 +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 c48ef78f4c..77a4fd9aef 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]>
@@ -16535,6 +16535,33 @@ (define-public r-profvis
 profiling R code.")
     (license license:gpl3)))
 
+(define-public r-prospectr
+  (package
+    (name "r-prospectr")
+    (version "0.2.6")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "prospectr" version))
+              (sha256
+               (base32
+                "1p53hcgcs2p09zhc2n7byjzrgvcgz6w7q00mlsn4kmnz7l4p7rrm"))))
+    (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://github.com/l-ramirez-lopez/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)))
+
 (define-public r-protviz
   (package
     (name "r-protviz")

base-commit: 8319be779f0d780aa801c9fa1be853781c680dda
-- 
2.37.3