Book Image

Learning Shiny

By : Hernan Resnizky
Book Image

Learning Shiny

By: Hernan Resnizky

Overview of this book

Table of Contents (19 chapters)
Learning Shiny
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Introducing R, RStudio, and Shiny
Index

Chapter 7. Advanced Functions in Shiny

At this stage, it is supposed that you already know how to code web applications in Shiny with certain complexity. In this chapter, three main topics will be covered that will help you to expand the possibilities of your applications a step further. They are mainly four functions that operate on the server side (that is, they are used in the server.R script):

  • validate(): This validates the inputs passed according to some condition

  • isolate(): This prevents the update of a piece of code given a change in a reactive value

  • observe(): This provides a reactive context but generates no displayable output

  • reactiveValues(): This creates a list object whose element can deal with reactive values

  • Input updates: These are a group of functions that change one or more characteristics of a specific input (for example, sliderInput would require updateSliderInput).