aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2019-02-15 15:42:38 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-02-15 16:04:29 +0100
commit9680047cda24a21e6823dfa49a3c7fbaf092a569 (patch)
tree6ad2dc05550517f40541edc423d074c216219e86 /gnu
parentb3080cddadf268bbcef845af07c6b8e0357afae8 (diff)
downloadpatches-9680047cda24a21e6823dfa49a3c7fbaf092a569.tar
patches-9680047cda24a21e6823dfa49a3c7fbaf092a569.tar.gz
gnu: Add r-future-apply.
* gnu/packages/cran.scm (r-future-apply): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cran.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 6c99e13a7a..7e2539da81 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -10590,3 +10590,31 @@ processing futures via compute cluster schedulers etc. Because of its unified
API, there is no need to modify any code in order to switch from sequential on
the local machine to, say, distributed processing on a remote compute cluster.")
(license license:lgpl2.1+)))
+
+(define-public r-future-apply
+ (package
+ (name "r-future-apply")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "future.apply" version))
+ (sha256
+ (base32
+ "0b6v9rxvnnz13sydbgkapw71hx98fwdczjchgqnspjmq2340kdc0"))))
+ (properties `((upstream-name . "future.apply")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-future" ,r-future)
+ ("r-globals" ,r-globals)))
+ (native-inputs
+ `(("r-r-rsp" ,r-r-rsp))) ; vignette builder
+ (home-page "https://github.com/HenrikBengtsson/future.apply")
+ (synopsis "Apply function to elements in parallel using futures")
+ (description
+ "This package provides implementations of @code{apply()},
+@code{eapply()}, @code{lapply()}, @code{Map()}, @code{mapply()},
+@code{replicate()}, @code{sapply()}, @code{tapply()}, and @code{vapply()} that
+can be resolved using any future-supported backend, e.g. parallel on the local
+machine or distributed on a compute cluster.")
+ (license license:gpl2+)))