How to build a Shiny app

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 ...

Get Hands-On Data Science with R 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.