Web Application Development with R Using Shiny(Third Edition)
上QQ阅读APP看书,第一时间看更新

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.