Asynchronous programming in R - Winston Chang

January 30, 2020 Winston Chang

Writing regular R code is straightforward: you tell R to do something, it does it, and then it returns control back to you. This is called synchronous programming. However, if you use R to coordinate threads, processes, or network communication, the regular model may be unable to do what you want, or it may only be able to do it with a significant performance penalty. In this talk I'll explain how asynchronous programming with the later package can handle these kinds of programming problems. I'll also show how to provide a synchronous interface for asynchronous code, so that users will have a simple, familiar way to use your code.

Materials

About the Author

Winston Chang

Winston is a software engineer at RStudio. He holds a Ph.D. in psychology from Northwestern University and is the author of R Graphics Cookbook, published by O’Reilly Media.

Follow on Twitter Follow on Linkedin Visit Website More Content by Winston Chang
Previous Video
Azure Pipelines and GitHub Actions - Jim Hester
Azure Pipelines and GitHub Actions - Jim Hester

Open source R packages on GitHub often take advantage of continuous integration services to automatically c...

Next Video
vctrs: Creating custom vector classes with the vctrs package - Jesse Sadler
vctrs: Creating custom vector classes with the vctrs package - Jesse Sadler

The base R types of vectors enable the representation of an amazingly wide array of data types. There is so...