This function deploys a selected Shiny
application (xai2shiny
application) to the created droplet.
1 2 3 4 5 6 7 8 | deploy_shiny(
droplet,
directory,
packages = "stats",
port = 80,
browse = TRUE,
ssh_user = "root"
)
|
droplet |
the droplet's id or droplet's object. The IP can be checked by running |
directory |
path to the directory containing |
packages |
vector of packages (package names) that are needed for the application to run. |
port |
port at which the application will run. |
browse |
a boolean, which indicates whether open the app on the web after deploying |
ssh_user |
the name of ssh console user, should NOT be modified when using the default xai2shiny cloud_setup |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.