4.2 Reactivitiy()

 Basic Shiny Application Server - Reactivitiy

Figure 4.4: Basic Shiny Application Server - Reactivitiy

4.2.2 reactiveValue()

This function returns an object to store reactive values. It is similar to a list but has special reactive programming capabilities. When you read a value from it, the calling reactive expression inherits a reactive dependency on that value, and when you write to it, it notifies all reactive functions that depend on that value. Note that values coming from the reactiveValues object are reactive, but the reactiveValues object itself is not.

4.2.3 observeEvent() & updateTabsetPanel()

An observeEvent object can be used to trigger a piece of code when an event occurs. It can state “Hey, if I do this, I want you to run the codes in it”.

This is an example of the application. “Hey, when I click the submit button for the plot, the Plot tab is selected”. In the following codes below, I called the input$submit, then it triggered updateTabsetPanel() to update the tab plot_tab