Creating an interactive report with Shiny

This recipe gives you a perfect tool for sharing analysis results with third parties.

Interactive reports are electronic documents enriched by Shiny functionalities, giving the user the ability to change the assumptions on which analyses are based and consequently changing the document's output.

You should now be comfortable with your analysis, autonomously answering questions that arise while reading.

How to do it…

  1. Create a Shiny document:
    How to do it…
  2. Remove the default content yaml parameters.
  3. Add a setup chunk:
    ```{r setup, include=FALSE}
    knitr::opts_chunk$set(echo = TRUE)
    ```
  4. Embed your Shiny app:
    ```{r tabsets, echo=FALSE} ...

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.