The application framework

Most of the code in this chapter expands on the Google Analytics application, as described in Chapter 2, Building Your First Application. Before we begin, let's review the code in server.R, which sets the data ready for the plotting commands. The complete code can be downloaded and run from http://chrisbeeley.net/website/:

library(dplyr)
library(shiny)
library(dygraphs)
library(xts)
library(rCharts)
library(d3heatmap)

Here, we load all of the packages, which will be needed for the application. The new ones can be installed as follows:

install.packages(c("dygraphs", "xts", "d3heatmap"))
require(devtools)
install_github("ramnathv/rCharts")

Now, we begin with the application, using the session argument. As described in Chapter ...

Get Web Application Development with R Using Shiny - Second 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.