Embedding applications in documents

To briefly return to the subject of interactive documents, it is worth noting that it is possible to embed entire Shiny applications within interactive documents rather than having the rather stripped-down functionality that we embedded within a document earlier in the chapter. Just include a link to the directory that holds the application, like this:

```{r, echo=FALSE} 
shinyAppDir( 
  "~/myApps/thisApplication", 
  ) 
``` 

For more information about embedding, type ?shinyApp in the console.

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.