aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-04-21 09:27:17 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-04-21 23:07:52 +0200
commitd9d66ba963bafaac706044b23407794167f69eab (patch)
treea85a6385f5e669ef3ec2439d2b407de9537f4358
parent284179bbb395000957be4b891be5cf1f76d88c39 (diff)
downloadpatches-d9d66ba963bafaac706044b23407794167f69eab.tar
patches-d9d66ba963bafaac706044b23407794167f69eab.tar.gz
gnu: Add r-promises.
* gnu/packages/cran.scm (r-promises): New variable.
-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 cc81815bdb..88be6b3d44 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -3871,3 +3871,31 @@ exchanging spatial objects with other R packages.")
"This package provides tools to execute arbitrary R or C functions some
time after the current time, after the R execution stack has emptied.")
(license license:gpl2+)))
+
+(define-public r-promises
+ (package
+ (name "r-promises")
+ (version "1.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "promises" version))
+ (sha256
+ (base32
+ "0n2mlv6bvfb4yhgcml696l9vkbw21pz0smqylivr606z99rwgny2"))))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-later" ,r-later)
+ ("r-magrittr" ,r-magrittr)
+ ("r-r6" ,r-r6)
+ ("r-rcpp" ,r-rcpp)
+ ("r-rlang" ,r-rlang)))
+ (home-page "https://rstudio.github.io/promises")
+ (synopsis "Abstractions for promise-based asynchronous programming")
+ (description
+ "This package provides fundamental abstractions for doing asynchronous
+programming in R using promises. Asynchronous programming is useful for
+allowing a single R process to orchestrate multiple tasks in the background
+while also attending to something else. Semantics are similar to JavaScript
+promises, but with a syntax that is idiomatic R.")
+ (license license:expat)))