<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/a-future-for-r-slides-from-user-2016/"></div></div><div><a data-url="http://www.r-bloggers.com/a-future-for-r-slides-from-user-2016/" data-counturl="http://www.r-bloggers.com/a-future-for-r-slides-from-user-2016/" data-count="horizontal" data-text="A Future for R: Slides from useR 2016" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.jottr.org/2016/07/a-future-for-r-slides-from-user-2016.html"> jottR</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Unless you count DSC 2003 in Vienna, last week's <a target="_blank" href="http://user2016.org/">useR</a> 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.</p>
<table align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><img src="http://i2.wp.com/3.bp.blogspot.com/-jE-Z5WO5Oao/Vxu6h_ADegI/AAAAAAABIv4/xz1a51ru6sMml1jc9I-ORjRmHyf1ODKtQCKgB/s320/hover_craft_car_photo_picture.jpg?w=456&ssl=1" border="0" data-recalc-dims="1"></td>
</tr>
<tr>
<td>The future is promising.</td>
</tr>
</tbody>
</table>
<p>At the end of the second day, I presented <em>A Future for R</em> (18 min talk; slides below) on how you can use the <a target="_blank" href="https://cran.r-project.org/package=future">future</a> 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.</p>
<p>Here's an example using two futures that process data in parallel:</p>
<pre><code>> library(&quot;future&quot;)<br>> plan(multiprocess)       ## Parallel processing<br>> a %&lt;-% slow_sum(1:50)    ## These two assignments are<br>> b %&lt;-% slow_sum(51:100)  ## non-blocking and in parallel<br>> y &lt;- a + b               ## Waits for a and b to be resolved<br>> y<br>[1] 5050<br></code></pre>
<p>Below are different formats of my talk (18 slides + 9 appendix slides) on 2016-06-28:</p>
<ul>
<li><a target="_blank" href="http://www.aroma-project.org/share/presentations/BengtssonH_20160628-useR2016/BengtssonH_20160628-A_Future_for_R,useR2016.html">HTML</a> (incremental slides; requires online access)</li>
<li><a target="_blank" href="http://www.aroma-project.org/share/presentations/BengtssonH_20160628-useR2016/BengtssonH_20160628-A_Future_for_R,useR2016,flat.html">HTML</a> (non-incremental slides; requires online access)</li>
<li><a target="_blank" href="http://www.aroma-project.org/share/presentations/BengtssonH_20160628-useR2016/BengtssonH_20160628-A_Future_for_R,useR2016.pdf">PDF</a> (incremental slides)</li>
<li><a target="_blank" href="http://www.aroma-project.org/share/presentations/BengtssonH_20160628-useR2016/BengtssonH_20160628-A_Future_for_R,useR2016,flat.pdf">PDF</a> (non-incremental slides)</li>
<li><a target="_blank" href="http://www.aroma-project.org/share/presentations/BengtssonH_20160628-useR2016/BengtssonH_20160628-A_Future_for_R,useR2016,pure.md">Markdown</a> (screen reader friendly)</li>
</ul>
<p>May the future be with you! </p>
<h2>Links</h2>
<ul>
<li>useR 2016:
<ul>
<li>Conference site: <a target="_blank" href="http://user2016.org/">http://user2016.org/</a></li>
<li>Talk abstract: <a target="_blank" href="https://user2016.sched.org/event/7BZK/a-future-for-r">https://user2016.sched.org/event/7BZK/a-future-for-r</a></li>
</ul>
</li>
<li>future package:
<ul>
<li>CRAN page: <a target="_blank" href="https://cran.r-project.org/package=future">https://cran.r-project.org/package=future</a></li>
<li>GitHub page: <a target="_blank" href="https://github.com/HenrikBengtsson/future">https://github.com/HenrikBengtsson/future</a></li>
</ul>
</li>
<li>future.BatchJobs package:
<ul>
<li>CRAN page: <a target="_blank" href="https://cran.r-project.org/package=future.BatchJobs">https://cran.r-project.org/package=future.BatchJobs</a></li>
<li>GitHub page: <a target="_blank" href="https://github.com/HenrikBengtsson/future.BatchJobs">https://github.com/HenrikBengtsson/future.BatchJobs</a></li>
</ul>
</li>
<li>doFuture package:
<ul>
<li>CRAN page: <a target="_blank" href="https://cran.r-project.org/package=doFuture">https://cran.r-project.org/package=doFuture</a></li>
<li>GitHub page: <a target="_blank" href="https://github.com/HenrikBengtsson/doFuture">https://github.com/HenrikBengtsson/doFuture</a></li>
</ul>
</li>
</ul>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/a-future-for-r-slides-from-user-2016/"></div></div><div><a data-url="http://www.r-bloggers.com/a-future-for-r-slides-from-user-2016/" data-counturl="http://www.r-bloggers.com/a-future-for-r-slides-from-user-2016/" data-count="vertical" data-text="A Future for R: Slides from useR 2016" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.jottr.org/2016/07/a-future-for-r-slides-from-user-2016.html"> jottR</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/Ly2Oq8Tqbks"></a></div>