library(shiny)
badfunc <- function() {
stop("boom")
}
A <- reactive({
badfunc()
})
B <- reactive({
A()
})
C <- reactive({
B()
})
ui <- fluidPage(
plotOutput("foo")
)
server <- function(input, output, session) {
session$onFlushed(stopApp)
output$foo <- renderPlot({
C()
})
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.