Skip to content

tylerlittlefield/shinynotyf

Repository files navigation

shinynotyf

Travis build status AppVeyor build status

The goal of shinynotyf is to wrap Notyf in R to provide notifications in shiny, you can demo the package here.

Installation

Install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("tylurp/shinynotyf")

Usage

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)

Acknowledgements