bindCache(): Basics

  • It will work with the reactive() or render* function.

  • The additional arguments are are the cache keys (to determine if a computation has been seen before)

r <- reactive(slow_function(input$x, input$y)) %>% 
  bindCache(input$x, input$y)

output$text <- renderText(slow_function2(input$z)) %>% 
  bindCache(input$z)