Look into getting rid of `useShinyalert()`
Closed this issue · 1 comments
daattali commented
Look into getting rid of `useShinyalert()`
daattali commented
The useShinyalert()
function is no longer required. You can still use it if you prefer to pre-load the scripts, but you would need to use useShinyalert(force=TRUE)
, otherwise you'll get a warning saying that it's not required. Example:
library(shiny)
library(shinyalert)
ui <- fluidPage()
server <- function(input, output, session) {
shinyalert("Oops!", "Something went wrong.", type = "error")
}
shinyApp(ui, server)