<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/announcing-the-wrapr-packge-for-r/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.win-vector.com/blog/2017/02/announcing-the-wrapr-packge-for-r/"> R – Win-Vector Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Recently <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/">Dirk Eddelbuettel</a> pointed out that our <a target="_blank" rel="nofollow" href="https://cran.r-project.org/"><code>R</code></a> function debugging wrappers would be more convenient if they were available in a low-dependency micro package dedicated to little else. Dirk is a very smart person, and like most <code>R</code> users we are deeply in his debt; so we (<a target="_blank" rel="nofollow" href="http://www.win-vector.com/site/staff/nina-zumel/">Nina Zumel</a> and <a target="_blank" rel="nofollow" href="http://www.win-vector.com/site/staff/john-mount/">myself</a>) listened and <em>immediately</em> moved the wrappers into a new micro-package: <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=wrapr"><code>wrapr</code></a>.</p>
<p><center><br>
<img title="wrapper.jpg" alt="Wrapper" src="https://i0.wp.com/www.win-vector.com/blog/wp-content/uploads/2017/02/wrapper.jpg?resize=399%2C300" border="0" data-recalc-dims="1"><a target="_blank" rel="nofollow" href="https://commons.m.wikimedia.org/wiki/File:Furoshiki_designed_by_Friedensreich_Hundertwasser_for_%27Fernw%C3%A4rme_Wien%27_AG.jpg#mw-jump-to-license">Image: Friedensreich Hundertwasser</a><br>
</center><span></span></p>
<p>
<code>wrapr</code> is a deliberately limited package. It does two things:
<ol>
<li>It supplies <code>R</code> argument capture function debug wrappers (previously distributed in <code>WVPlots</code> and <code>replyr</code>). We have a short introduction <a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/wrapr/vignettes/DebugFnW.html">here</a>. We have also snuck in some improvements in how results are written back (detailed in the <a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/wrapr/vignettes/DebugFnW.html">vignette</a>).</li>
<li>It supplies the “<code>let</code>” execution macro (previously distributed in <code>replyr</code>). “<code>let</code>” wraps convenient “non-standard name capture” interfaces into easier to program over “standard or parametric interfaces.” We have a short introduction <a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/wrapr/vignettes/let.html">here</a>.</li>
</ol>
<p>Future versions of <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=replyr"><code>replyr</code></a> and <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=WVPlots"><code>WVPlots</code></a> will re-export these functions. This means going forward there will be only one version of these functions, yet older code written against them should continue to work (in particular: all of our previous <a target="_blank" rel="nofollow" href="http://www.win-vector.com/blog/">writing</a> and <a target="_blank" rel="nofollow" href="https://youtu.be/iKLGxzzm9Hk?list=PLAKBwakacHbQp_Z66asDnjn-0qttTO-o9">videos</a> demonstrating the methods).</p>
<p>Both of the <code>wrapr</code> techniques (<code>let</code>-wrapping and debug-wrapping) are quite powerful and can greatly speed up your ability to write and debug <code>R</code> code. Please give these methods a try, and also please tell others about the <code>wrapr</code> package.</p>
<p>
<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.win-vector.com/blog/2017/02/announcing-the-wrapr-packge-for-r/"> R – Win-Vector Blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://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="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/eoHs4StEf8U"></a></div>