Subject: [PATCH] gnu: Add r-hmm.

From: Roel Janssen <[email-masked]>
Date: Wed, 07 Apr 2021 10:17:00 +0200

Dear Guix,

I'd like to add r-hmm. See attached patch.

Kind regards,
Roel Janssen

From 15be497145e041f9a53250437604a94a97f12bbb Mon Sep 17 00:00:00 2001
From: Roel Janssen <[email-masked]>
Date: Wed, 7 Apr 2021 10:14:35 +0200
Subject: [PATCH] gnu: Add r-hmm.

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 044ad8f5bb..1b244bcc9a 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -3,7 +3,7 @@
 ;;; Copyright © 2015 Andreas Enge <[email-masked]>
 ;;; Copyright © 2015, 2016 Pjotr Prins <[email-masked]>
 ;;; Copyright © 2016, 2017 Ben Woodcroft <[email-masked]>
-;;; Copyright © 2016, 2017, 2018, 2020 Roel Janssen <[email-masked]>
+;;; Copyright © 2016, 2017, 2018, 2020, 2021 Roel Janssen <[email-masked]>
 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2017 Raoul Bonnal <[email-masked]>
 ;;; Copyright © 2018 Vijayalakshmi Vedantham <[email-masked]>
@@ -1058,6 +1058,25 @@ the embedded @code{RapidXML} C++ library.")
 into a pipeline of data manipulation and visualisation.")
     (license license:gpl3)))
 
+(define-public r-hmm
+  (package
+   (name "r-hmm")
+   (version "1.0")
+   (source (origin
+            (method url-fetch)
+            (uri (cran-uri "HMM" version))
+            (sha256
+             (base32
+              "0z0hcqfixx1l2a6d3lpy5hmh0n4gjgs0jnck441akpp3vh37glzw"))))
+   (properties `((upstream-name . "HMM")))
+   (build-system r-build-system)
+   (home-page "http://cran.r-project.org/web/packages/HMM/")
+   (synopsis "Hidden Markov Models")
+   (description "This package provides an easy to use library to setup, apply
+and make inference with discrete time and discrete space hidden markov
+models.")
+   (license license:gpl2+)))
+
 (define-public r-httpuv
   (package
     (name "r-httpuv")
-- 
2.30.2