guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/13: gnu: Add r-dofuture.


From: guix-commits
Subject: 11/13: gnu: Add r-dofuture.
Date: Tue, 7 Sep 2021 08:11:51 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit a472f502e120095766376fa44bc769b040bd4c51
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Sep 7 13:27:52 2021 +0200

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 8d36bde..e37f07a 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -9788,6 +9788,38 @@ counterfactual means and causal effects that are 
doubly-robust with respect
 both to consistency and asymptotic normality.")
     (license license:expat)))
 
+(define-public r-dofuture
+  (package
+    (name "r-dofuture")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "doFuture" version))
+       (sha256
+        (base32
+         "1hqzdlgcrc5l6xjwdylsc9iiysi2wx8k1j1vmw3wryj26057c9y4"))))
+    (properties `((upstream-name . "doFuture")))
+    (build-system r-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'set-HOME
+           (lambda _ (setenv "HOME" "/tmp"))))))
+    (propagated-inputs
+     `(("r-foreach" ,r-foreach)
+       ("r-future" ,r-future)
+       ("r-globals" ,r-globals)
+       ("r-iterators" ,r-iterators)))
+    (native-inputs
+     `(("r-r-rsp" ,r-r-rsp))) ; vignette builder
+    (home-page "https://github.com/HenrikBengtsson/doFuture";)
+    (synopsis "Foreach parallel adapter using the future API")
+    (description
+     "This package provides a @code{%dopar%} adapter such that any type of
+futures can be used as backends for the @code{foreach} framework.")
+    (license license:lgpl2.1+)))
+
 (define-public r-mosaiccore
   (package
     (name "r-mosaiccore")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]