promises v1.0.1

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

devtools::install_github("rstudio/promises")

The CRAN version of Shiny doesn't (yet) support promises. Until support is merged, you'll have to install from GitHub:

devtools::install_github("rstudio/shiny")

License

MIT

Functions in promises

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

Vignettes of promises

Name
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.0.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 2018-04-12 22:42:12 UTC; jcheng
Repository CRAN
Date/Publication 2018-04-13 08:59:30 UTC

Include our badge in your README

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