Skip to content

Instantly share code, notes, and snippets.

@shaun-jacks
Created February 21, 2019 00:21
Show Gist options
  • Save shaun-jacks/20e7c785ae939fc72ccc54ac4fe08462 to your computer and use it in GitHub Desktop.
Save shaun-jacks/20e7c785ae939fc72ccc54ac4fe08462 to your computer and use it in GitHub Desktop.
example of reset button in shiny vision project
# on click of restart button, reset all reactive values
observeEvent(input$reset, {
values$img_res = NULL
values$file_path = ""
photo = NULL
values$analysis_type = ""
values$analysis_selected = F
values$warning_inputs = ""
values$file_uploaded = F
values$upload_step = 1
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment