Web Application Development with R Using Shiny(Third Edition)
Chris Beeley Shitalkumar R. Sukhdeve更新时间:2021-07-16 17:52:38
最新章节:Leave a review - let other readers know what you think封面
Title Page
Copyright and Credits
Web Application Development with R Using Shiny Third Edition
www.PacktPub.com
Why subscribe?
Packt.com
Contributors
About the authors
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Beginning R and Shiny
Installing R
The R console
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
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
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
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
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
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
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
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
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
Leave a review - let other readers know what you think
更新时间:2021-07-16 17:52:38