I have a shiny app running in the Electron framework (not a browser), and I'd like to quit R and stop shiny when I close the Electron app.
Usually, you can just add something like this to server.R:
session$onSessionEnded(function() {
stopApp()
q("no")
})
If I can figure out how to trigger the custom callback from Electron, I imagine this code will still work. However, it only works in a browser :(.