Shiny apps can be embedded into two different types of places:
Regardless of where your Shiny app is deployed, embed your the app in your websites by using an iframe. Here’s the code that embeds the Shiny app you can see embedded into this website:
<iframe src="http://trainingidn.shinyapps.io/OxShef_shiny_tutorials_shiny101/" width="100%" height="400px"></iframe>
Shiny apps may be embedded into any HTML RMarkdown document, this includes; html_document, shiny_presentation, ioslides_presentation. In order to include Shiny apps you must add runtime: shiny
into the YAML header:
---
title: "Habits"
output: html_document
runtime: shiny
---
Note that these “Shiny RMarkdown documents” can be deployed to shinyapps.io or Shiny Server almost identically to how regular Shiny apps can be deployed. Further documentation on inline Shiny apps is available here.