I want to open a confirmation dialog and after clicking the confirm-button I want to open a URL within the same window. It will be a deployed app and browseURL() is not an option.
So far I have this:
library(shiny)
library(shinyWidgets)
ui <- fluidPage(
  
  actionButton("open", "Click Me")
  
)
server <- function(input, output, session) {
  
  observeEvent(input$open, {
    confirmSweetAlert(
      session = session,
      inputId = "confirm",
      title = "Please confirm."
    )
  })
  
  observeEvent(input$confirm, {
    if (input$confirm) {
      browseURL('http://www.google.com')
    }
  })
  
}
shinyApp(ui, server)
Are there any alternatives to browseURL?
