O'Reilly logo

RStudio for R Statistical Computing Cookbook by Andrea Cirillo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required