Subject: [bug#61551] [PATCH] gnu: Add r-changepoint.

From: Navid Afkhami <[email-masked]>
Date: Thu, 16 Feb 2023 16:45:23 +0100

* gnu/packages/cran.scm (r-changepoint): New variable.
---
 gnu/packages/cran.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index b4dc7822f2..857026a573 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -283,6 +283,27 @@ (define-public r-castor
 reading/writing trees in Newick format.")
     (license license:gpl2+)))
 
+(define-public r-changepoint
+  (package
+    (name "r-changepoint")
+    (version "2.2.4")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "changepoint" version))
+              (sha256
+               (base32
+                "16v4p2c9zi2w3anwf5y9snl5dy1g5aidiqz1vn2p64qhfvg6yqxc"))))
+    (properties `((upstream-name . "changepoint")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-zoo))
+    (home-page "https://github.com/rkillick/changepoint/")
+    (synopsis "Methods for changepoint detection")
+    (description
+     "Changepoint implements various mainstream and specialised changepoint methods.
+These Methods are suitable for finding single and multiple changepoints within data.
+Many popular non-parametric and frequentist methods are included as well.")
+    (license license:gpl3+)))
+
 (define-public r-collections
   (package
     (name "r-collections")
-- 
2.34.1