Skip to content

Latest commit

 

History

History
49 lines (27 loc) · 1.94 KB

index.md

File metadata and controls

49 lines (27 loc) · 1.94 KB

Promises

The promises package brings asynchronous programming capabilities to R. Asynchronous programming is a technique used by many programming languages to increase scalability and responsiveness. Traditionally, this style of programming has not been useful to R users. But the advent of R web applications like Shiny has made async programming relevant.

This website provides a multi-step guide that will help familiarize you with several related concepts that are required for effective async programming. It is highly recommended that you go through the topics in order.

Installation

install.packages("promises")
<style> .contents a.anchor { display: none; } </style>

Contents

Why do we need async programming? What is it good for, and not good for?

Async programming can require a serious mental shift, even for veteran programmers. This document attempts to introduce the "average" R user to the topic, as gently as possible.

A more thorough exploration of the concepts behind promises, and the API provided by the promises package.

A guide to the future package, the place where we expect most async programming in R to begin.

Leverage promises to make sure that future execution does not block the main R process.

Learn how to integrate promises into your Shiny applications.

Functions and techniques for working with multiple promises simultaneously.

Walk through the conversion of a realistic Shiny example app to async.