Stops the currently running Shiny app, returning control to the caller of
runApp(). Despite the similar names, stopApp() is not the
counterpart of startApp() — it is the counterpart of runApp(),
controlling its return value via returnValue.
stopApp(returnValue = invisible())The value that should be returned from
runApp().