Introducing Shiny – the app framework
The Shiny
package delivers a powerful framework to build fully featured interactive Web applications just with R and RStudio. Basic Shiny applications typically consist of two components:
~/shinyapp |-- ui.R |-- server.R
While the ui.R
function represents the appearance of the user interface, the server.R
function contains all the code for the execution of the app. The look of the user interface is based on the famous Twitter bootstrap framework, which makes the look and layout highly customizable and fully responsive. In fact, you only need to know R and how to use the shiny
package to build a pretty web application. Also, a little knowledge of HTML, CSS, and JavaScript may help.
If you want to check the general possibilities and what is possible with the Shiny
package, it is advisable to take a look at the inbuilt examples. Just load the library and enter the example name:
library(shiny) runExample("01_hello")
As you can see, running...