I have a nice shiny app and would like to bookmark the state of the app and open a save file dialog that allows the user to save a URL shortcut to his/hers machine for later use. Example code below. Currently the app only shows the ulr link but does not create a url shortcut or save it anywhere. Seems simple enough but I haven't found any post regarding this directly and I haven't quite got it figured out myself.
ui <- function(request) {
fluidPage(
textInput("txt", "Enter text"),
checkboxInput("caps", "Capitalize"),
verbatimTextOutput("out"),
bookmarkButton()
)
}
server <- function(input, output, session) {
output$out <- renderText({
if (input$caps)
toupper(input$txt)
else
input$txt
})
}
shinyApp(ui, server, enableBookmarking = "url")
I've found the following post useful but its not quite getting the result I'm looking for. link