Web Application Development with R Using Shiny

Author: Chris Beeley   Shitalkumar R. Sukhdeve  

Publisher: Packt Publishing‎

Publication year: 2018

E-ISBN: 9781788998284

P-ISBN(Paperback): 89543100376280

Subject: TP301.6 algorithm theory

Language: ENG

Access to resources Favorite

Disclaimer: Any content in publications that violate the sovereignty, the constitution or regulations of the PRC is not accepted or approved by CNPIEC.

Web Application Development with R Using Shiny

Chapter

Code editors and IDEs

Learning R

Getting help

Loading data

Data types and structures

Dataframes, lists, arrays, and matrices

Variable types

Functions

Objects

Base graphics and ggplot2

Bar chart

Line chart

Introduction to the tidyverse

Ceci n'est pas une pipe

Gapminder

A simple Shiny-enabled line plot

Installing Shiny and running the examples

Summary

Chapter 2: Shiny First Steps

Types of Shiny application

Interactive Shiny documents in RMarkdown

A minimal example of a full Shiny application

The ui.R of the minimal example

A note on HTML helper functions

The finished interface

The server.R of the minimal example

The program structure

An optional exercise

Embedding applications in documents

Widget types

The Gapminder application

The UI

Data processing

Reactive objects

Outputs

Text summary

Trend graphs

A map using leaflet

Advanced layout features

Summary

Chapter 3: Integrating Shiny with HTML

Running the applications and code

Shiny and HTML

Custom HTML links in Shiny

ui.R

server.R

A minimal HTML interface

index.html

server.R

Including a Shiny app on a web page

HTML templates

Inline template code

server.R

ui.R and template.html

Defining code in the ui.R file

ui.R

Take a step back and rewind

Exercise

Debugging

Bootstrap 3 and Shiny

Summary

Chapter 4: Mastering Shiny's UI Functions

Shiny's layout functions

Simple

Complete

Do it yourself

Combining layout functions

Streamlining the UI by hiding elements

Naming tabPanel elements

Beautiful tables with DataTable

Reactive user interfaces

The reactive user interface example – server.R

The reactive user interface example – ui.R

Progress bars

Progress bar with shinycssloaders

Modals

Alternative Shiny designs

Summary

Chapter 5: Easy JavaScript and Custom JavaScript Functions

JavaScript and Shiny

Example 1 – reading and writing the DOM

ui.R

appendText.js

Example 2 – sending messages between client and server

ui.R

server.R

dropdownDepend.js

Shinyjs

Extendshinyjs

ui.R

server.R

JavaScript

Responding to events in JavaScript

htmlwidgets

Dygraphs

rCharts

d3heatmap

threejs

Summary

Chapter 6: Dashboards

Applications in this chapter

Flexdashboards

Sidebar application with extra styling

Adding icons to your UI

Using shinythemes

Using the grid layout

ui.R

Full dashboard

Notifications

Info boxes

ui.R

Google Charts gauge

Resizing the Google chart

ui.R

Summary

Chapter 7: Power Shiny

Animation

Reading client information and GET requests in Shiny

Custom interfaces from GET strings

Downloading graphics and reports

Downloadable reports with knitr

Downloading and uploading data

Bookmarking

Bookmarking state

Encoding the state into a URL

Single-file application

Multiple-file application

Bookmarking by saving the state to the server

Interactive plots

Interactive tables

Row selection

Column selection

Cell Selection

Linking interactive widgets

Shiny gadgets

Adding a password

Summary

Chapter 8: Code Patterns in Shiny Applications

Reactivity in RShiny

A closer look at reactivity

Controlling specific input with the isolate() function

Running reactive functions over time (execution scheduling)

Event-handling using observeEvent and eventReactive

Functions and modules

Shinytest

Debugging

Handling errors (including validate() and req())

Validate

Handling missing input with req()

Profiling R code

Debounce and throttle

Summary

Chapter 9: Persistent Storage and Sharing Shiny Applications

Sharing over GitHub

An introduction to Git

Using Git and GitHub within Rstudio

Projects in RStudio (h3)

Sharing applications using Git

Sharing using .zip and .tar

Sharing with the world

Shinyapps.io

Shinyapps.io without RStudio

Shiny server

Running Shiny app on Amazon AWS

Scoping, loading, and reusing data in Shiny applications

Temporary data input/output

Persistent data storage

Database using Dplyr, DBI, and POOL

SQL Injection

Summary

Other Books You May Enjoy

Index

The users who browse this book also browse


No browse record.