if(interactive()) {
library(shiny)
ui <- fluidPage(
bsAlert(tags$b("Success: "), "You made it", status = "success"),
bsAlert(tags$b("Info: "), "Something happened", status = "info"),
bsAlert(tags$b("Warning: "), "Something is not right", status = "warning"),
bsAlert(tags$b("Danger: "), "Oh no...", status = "danger")
)
server <- function(input, output, session) {}
shinyApp(ui, server)
}
Run the code above in your browser using DataLab