promises v1.1.0

0

Monthly downloads

0th

Percentile

Abstractions for Promise-Based Asynchronous Programming

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.

Readme

promises

Build Status

A promise library for R. https://rstudio.github.io/promises

Installation

install.packages("promises")

To use promises with Shiny, make sure you have Shiny v1.1.0 or later.

License

MIT

Functions in promises

Name Description
pipes Promise pipe operators
with_promise_domain Promise domains
promise Create a new promise object
reexports Objects exported from other packages
promise_resolve Create a resolved or rejected promise
is.promise Coerce to a promise
promise_reduce Promise-aware version of Reduce
promise_map Promise-aware lapply/map
resolve Fulfill a promise
then Access the results of a promise
promise_all Combine multiple promise objects
No Results!

Vignettes of promises

Name
case-study-downloaders.png
case-study-gantt-aligned.png
case-study-gantt-async.png
case-study-gantt-async2.png
case-study-gantt1.png
case-study-gantt2.png
case-study-gantt3.png
case-study-react.png
case-study-tab1.png
case-study-tab2.png
case-study-tab3.png
case-study-tab4.png
case-study-tab5.png
casestudy.Rmd
combining.Rmd
futures.Rmd
intro.Rmd
motivation.Rmd
overview.Rmd
shiny.Rmd
No Results!

Last month downloads

Details

Type Package
License MIT + file LICENSE
LinkingTo later, Rcpp
RoxygenNote 6.1.1
Encoding UTF-8
LazyData true
VignetteBuilder knitr
URL https://rstudio.github.io/promises, https://github.com/rstudio/promises
BugReports https://github.com/rstudio/promises/issues
NeedsCompilation yes
Packaged 2019-10-04 16:59:31 UTC; jcheng
Repository CRAN
Date/Publication 2019-10-04 23:00:05 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/promises)](http://www.rdocumentation.org/packages/promises)