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.