clearStore | R Documentation |
Remove all stored inputs of an application
clearStore(appId, session = getDefaultReactiveDomain())
appId |
the application identification |
session |
session object |
No return value, called for side effects
Ensure not to use this function when the inputs are intended to be tracked.
if (interactive()) {
library(shiny)
library(shinyStorePlus)
ui <- fluidPage(
# initialize stores
initStore(),
"Sample delete storage",
selectInput("dataset",
label = "Dataset",
choices = c("dataset 1", "dataset 2")
)
)
server <- function(input, output, session) {
appid <- "application01"
clearStore(appId = appid)
}
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.