HTML templates

The developers of Shiny themselves noted that although it has always been possible to produce entire Shiny applications in HTML, it is very rare to find any examples where somebody has done so. This is probably because of Shiny's ability to produce attractive applications using pure R code (and its ability to incorporate snippets of HTML), as well as the relative complexity of writing the whole interface yourself. To make things simpler, Shiny 0.13 added the ability to use HTML templates. Using an HTML template, you can very easily mix together HTML and Shiny code. There are two main ways of doing this: firstly by defining the code inline within the HTML, and secondly by defining it with the ui.R file. In both cases, you will ...

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.