summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-09-07 13:27:52 +0200
committerRicardo Wurmus <rekado@elephly.net>2021-09-07 13:27:52 +0200
commita472f502e120095766376fa44bc769b040bd4c51 (patch)
tree6abd5d28c02be208f7e118615b8a0dde7b5de030
parentb04a2efe46319dff0377f842b862ddb3a7a93543 (diff)
downloadguix-a472f502e120095766376fa44bc769b040bd4c51.tar.gz
gnu: Add r-dofuture.
* gnu/packages/cran.scm (r-dofuture): New variable.
-rw-r--r--gnu/packages/cran.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 8d36bdebfb..e37f07a657 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")