Announcing the wrapr packge for R

February 11, 2017

(This article was first published on R – Win-Vector Blog, and kindly contributed to R-bloggers)

Recently Dirk Eddelbuettel pointed out that our R 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 R users we are deeply in his debt; so we (Nina Zumel and myself) listened and immediately moved the wrappers into a new micro-package: wrapr.

WrapperImage: Friedensreich Hundertwasser

wrapr is a deliberately limited package. It does two things:

  1. It supplies R argument capture function debug wrappers (previously distributed in WVPlots and replyr). We have a short introduction here. We have also snuck in some improvements in how results are written back (detailed in the vignette).
  2. It supplies the “let” execution macro (previously distributed in replyr). “let” wraps convenient “non-standard name capture” interfaces into easier to program over “standard or parametric interfaces.” We have a short introduction here.

Future versions of replyr and WVPlots 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 writing and videos demonstrating the methods).

Both of the wrapr techniques (let-wrapping and debug-wrapping) are quite powerful and can greatly speed up your ability to write and debug R code. Please give these methods a try, and also please tell others about the wrapr package.

To leave a comment for the author, please follow the link and comment on their blog: R – Win-Vector Blog. 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.


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)