Subject: [PATCH 1/3] gnu: Add r-rcppthread.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Fri, 5 Mar 2021 02:20:37 +0100

* gnu/packages/cran.scm (r-rcppthread): New variable.
---
 gnu/packages/cran.scm | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 1d574b9768..4ac4b4cae1 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -11,7 +11,7 @@
 ;;; Copyright © 2018 Sandeep Subramanian <[email-masked]>
 ;;; Copyright © 2018 Charlie Ritter <[email-masked]>
 ;;; Copyright © 2018 Konrad Hinsen <[email-masked]>
-;;; Copyright © 2018, 2020 Mădălin Ionel Patrașcu <[email-masked]>
+;;; Copyright © 2018, 2020, 2021 Mădălin Ionel Patrașcu <[email-masked]>
 ;;; Copyright © 2018 Laura Lazzati <[email-masked]>
 ;;; Copyright © 2018 Leo Famulari <[email-masked]>
 ;;; Copyright © 2018 Marius Bakke <[email-masked]>
@@ -2668,6 +2668,27 @@ and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer); see
 @code{citation(\"Rcpp\")} for details on these last two.")
     (license license:gpl2+)))
 
+(define-public r-rcppthread
+  (package
+    (name "r-rcppthread")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "RcppThread" version))
+       (sha256
+        (base32
+         "1xfcxrny779kgknlvnc4j02ifprnakndnkhx8bhy50d39vp4hjjl"))))
+    (properties `((upstream-name . "RcppThread")))
+    (build-system r-build-system)
+    (home-page
+     "https://github.com/tnagler/RcppThread")
+    (synopsis "R threading in C++")
+    (description
+     "This package provides a C++11-style thread class and thread pool that can
+safely be interrupted from R.")
+    (license license:expat)))
+
 (define-public r-bindr
   (package
     (name "r-bindr")
-- 
2.30.1