library(shiny.exe)
shiny.exe(appName = "MyApp", port = 3838,host = 'public', appDir = "/path/to/my/app")
Usage
Usage
The shiny.exe()
function takes a number of arguments, including the name of your application, the path to your application, and the port number on which you want to run your application. If you set ‘host = ’public’‘, the application will be launched on the public server to which you are connected. Thus, all other devices connected to the same server will be able to access the application through the link of your ’IPv4’ extended by the port.
The following is an example of how to use the shiny.exe function:
This will generates a script “MyApp.R” in the open shiny project then create a shortcut in the same folder called “MyApp.bat” on windows, “MyApp.command” on MacOS, “MyApp.sh” on Lunix. You can then run the application by double-clicking on the executable.
If you are running this function in a shiny project, you don’t need to specify the appDir
parameter.In case you do not publish this application in a public server, the host
and port
parameters may not be specified.