The goal of shinynotyf is to wrap Notyf in R to provide notifications in shiny, you can demo the package here.
Install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("tylurp/shinynotyf")
You can use shinynotyf
in a shiny app like so:
library(shiny)
library(shinynotyf)
ui <- fluidPage(
use_shinynotyf(),
actionButton("preview", "Preview")
)
server <- function(input, output, session) {
observeEvent(input$preview, {
shinynotyf(
message = "Hi there!",
type = "success"
)
})
}
shinyApp(ui, server)
- Carlos Roso, the creator of Notyf