Constructing RStudio add-ins

RStudio add-ins are one of the newest and most promising developments introduced recently by the RStudio team. They add infinite possibilities for improvement to users' workflows through the enhancement of their IDE.

There are two main types of add-ins:

  • Text macros: These only produce a text insertion within your code (for instance the (){} structure to be added after the function token).
  • Shiny gadgets: These are little Shiny apps that are shown within the viewer pane, a pop-up window, or a browser window. They let you perform advanced activities such as statistical parameter definition or data-wrangling tasks.

In this example, we will develop the second type of add-in from the function definition, for deployment and installation ...

Get RStudio for R Statistical Computing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.