Book Image

Web Application Development with R Using Shiny Second Edition - Second Edition

By : Chris Beeley
Book Image

Web Application Development with R Using Shiny Second Edition - Second Edition

By: Chris Beeley

Overview of this book

R is a highly flexible and powerful tool for analyzing and visualizing data. Most of the applications built using various libraries with R are desktop-based. But what if you want to go on the web? Here comes Shiny to your rescue! Shiny allows you to create interactive web applications using the excellent analytical and graphical capabilities of R. This book will guide you through basic data management and analysis with R through your first Shiny application, and then show you how to integrate Shiny applications with your own web pages. Finally, you will learn how to finely control the inputs and outputs of your application, along with using other packages to build state-of-the-art applications, including dashboards.
Table of Contents (14 chapters)
Web Application Development with R Using Shiny Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Debugging


Debugging Shiny applications can be a bit tricky at times. Unlike many analytics applications, using R outputs cannot be stepped through simply, and sometimes, error messages can be a little difficult to understand. Shiny does have some quite useful debugging functions, and there are some sensible practices to be used whenever you write Shiny code that should help you to avoid too many problems with debugging.

Good practice when coding Shiny applications

Probably, the most effective weapon in your armory when you are trying to write bug-free code that is easy to maintain is always making sure that anything you write within Shiny will also run outside of Shiny. You would be amazed how often this rule is violated in forum questions. Error messages can often be obscure, and fixing your code based on the messages that Shiny brings back can often be futile. Break the offending piece of code out of the Shiny application and ensure that it works in a standard interactive R call.

Once you...