I am using the example from Dean's shinyalert package:
library(shiny)
library(shinyalert)
shinyApp(
ui = fluidPage(
useShinyalert(), # Set up shinyalert
actionButton("btn", "Greet")
),
server = function(input, output) {
observeEvent(input$btn, {
shinyalert(
"Enter your name", type = "input",
callbackR = function(x) { message("Hello ", x) },
callbackJS = "function(x) { alert('Hello ' + x); }"
)
})
}
)
For some reason, the example shown on the github does not work on mine. And when I remove the callbackJS. Nothing happens. I input the name and click 'Ok' but the chain modal does not work.
Any ideas?


