Use this repo as a template for deploying Shiny apps as standalone Windows desktop applications.
There are two options:
Put any package dependencies in req.txt one per line, these will be loaded in run.R or installed if missing on first run.
Download and install Google Chrome Portable, then copy the contents of GoogleChromePortable\App\Chrome-bin\ into the chrome folder.
Other suitable browsers may be also be used, but make sure to change browser_path in run.R.
See setup.iss for an example compilation script using Inno Setup.
Make sure to generate a new AppId and change the name, version, etc.
To allow the app to terminate when the browser window is closed, the following should be added to the server function:
Note that session must be added as an argument to the server function
server <- function(input, output, session) {
...
session$onSessionEnded(function() {
stopApp()
})
}