A Future for R: Slides from useR 2016

July 2, 2016

(This article was first published on jottR, and kindly contributed to R-bloggers)

Unless you count DSC 2003 in Vienna, last week's useR conference at Stanford was my very first time at useR. It was a great event, it was awesome to meet our lovely and vibrant R community in real life, which we otherwise only get know from online interactions, and of course it was very nice to meet old friends and make new ones.

The future is promising.

At the end of the second day, I presented A Future for R (18 min talk; slides below) on how you can use the future package for asynchronous (parallel and distributed) processing using a single unified API regardless of what backend you have available, e.g. multicore, multisession, ad hoc cluster, and job schedulers. I ended with a teaser on how futures can be used for much more than speeding up your code, e.g. generating graphics remotely and displaying it locally.

Here's an example using two futures that process data in parallel:

> library("future")
> plan(multiprocess) ## Parallel processing
> a %<-% slow_sum(1:50) ## These two assignments are
> b %<-% slow_sum(51:100) ## non-blocking and in parallel
> y <- a + b ## Waits for a and b to be resolved
> y
[1] 5050

Below are different formats of my talk (18 slides + 9 appendix slides) on 2016-06-28:

  • HTML (incremental slides; requires online access)
  • HTML (non-incremental slides; requires online access)
  • PDF (incremental slides)
  • PDF (non-incremental slides)
  • Markdown (screen reader friendly)

May the future be with you!


To leave a comment for the author, please follow the link and comment on their blog: jottR.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)