R Shiny App Tutorial | eventReactive() demo | Create dependency on actionButton

Опубликовано: 11 Март 2026
на канале: Abhinav Agrawal
3,509
45

In this video we will see how to use eventReactive() function in R Shiny.
How to create dependency on a button to reflect user input changes to the rendered output.
Use case is to subset data on click of button and display the resultant data.

link to github code :
Approach # 1
Implementation using eventReactive() :
https://gist.github.com/aagarw30/84c8...

Approach # 2 :
Implementation using reactiveVal() & observeEvent() :
https://gist.github.com/aagarw30/2765...

eventReactive() approach is better than the second one.

#R #rstats #RShiny #ShinyApp