
Some interactive documents you create will use narrative interspersed with Shiny components and some (like this example) will be full page applications. We again use context: server on the last R code chunk to indicate that it contains the Shiny Server code.We add panel: sidebar and panel: fill to the two code chunks that define the user-interface to specify that we want them laid out in special panel containers.The YAML front-matter includes the page-layout: custom option (to indicate we want our content to occupy the entire page rather than being centered with padding).There are a few things worth noting in this example:

title: "Iris K-Means Clustering" format: html: page-layout: custom server: shiny - ```) ```
