Skip to content

Instantly share code, notes, and snippets.

@leoluyi
Forked from hadley/shiny-password.R
Last active August 29, 2015 14:21
Show Gist options
  • Save leoluyi/00488b42ae92381dbbd6 to your computer and use it in GitHub Desktop.
Save leoluyi/00488b42ae92381dbbd6 to your computer and use it in GitHub Desktop.
library("shiny")
x <- runApp(shinyApp(
fluidPage(
"Password:",
tags$input(id = "password", type = "password"),
actionButton("done", "Done")
),
function(input, output) {
observe({
input$done
if (input$done > 0)
stopApp(isolate(input$password))
})
}
))
x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment