Publishing interactive R Markdown documents
There are several ways to publish your interactive R Markdown documents. But, based on how the interactivity was created in the respective document, the final product can be published. So, if we remember the introduction of this chapter, there are two ways to create interactivity: first, using the Shiny framework; second, integrating interactive chart packages.
All R Markdown documents that are based on the Shiny framework can easily be deployed by typing shinyapps::deployApp()
into the console of the http://www.shinyapps.io/ service (introduced in Chapter 4, Shiny – a Web-app Framework for R), and of course, into our own Shiny servers. This applies not only to Shiny documents and presentations, but also to documents with interactive ggvis
elements, since ggvis
uses the Shiny framework.
In contrast, R Markdown documents that are created with interactive chart packages, such as rCharts
, googleVis
, dygraphs
, and so on, can also be published on http...