A minimal HTML interface

Now that we have dipped our toes into HTML, let's build a (nearly) minimal example of an interface entirely in HTML. To use your own HTML in a Shiny application, create the server.R file as you normally would. Then, instead of a ui.R file, create a folder named www and place a file named index.html inside this folder. This is where you will define your interface.


Let's look at each chunk of index.html in turn:

<!-----------------------------> <!--Minimal example- HTML UI --> <!-----------------------------> <html> <head> <title>HTML minimal example</title> <script src="shared/jquery.js" type="text/javascript"></script> <script src="shared/shiny.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" ...

Get Web Application Development with R Using Shiny - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.