First, we need to install the shiny package. If you don't have it, make sure to run the following code:
install.packages("shiny")
To build a Shiny application with R, we need to construct the two structures we talked about before. The user's interface is a web page based on an HTML code, and, as the name says, it is an interface that users can interact with; it can be an interactive plot, texts, images, and so on. You don't need to worry if you don't know anything about HTML since we are going to use the shiny package to build it, though some knowledge about it can help you to build an improved app. The server, otherwise, must contain all information needed by the web server to provide the information requested by the UI. Run the following code if you want to see some examples:
library(shiny)
runExample()
runExample('01_hello...