library(shiny)
ui <- fluidPage(tags$script(src = "say_hello_handler.js"))
server <- function(input, output, session) {
observe({
invalidateLater(5000)
say_hello_to_js("hello")
})
}
shinyApp(ui, server, options = list(shiny.trace = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.