Deploying Shiny Apps from the GUI
Deploy your Shiny app directly from the deployment space GUI.
If you don't have a Shiny app, you can use an automatically generated app from RStudio.
Exporting project assets and importing it into a deployment space is the standard and recommended way to move assets (for example, Shiny apps) to a deployment space. For details, refer to Importing spaces and projects.
If you use the GUI, you can deploy Shiny apps from two different asset types:
Deploying a Shiny app from GUI
To deploy a Shiny app from GUI:
- Locate the app in the Assets list.
- Go to the action menu for your asset and click Deploy.
- Enter your deployment name.
- Optional: In the Serving name field, provide the name to be used as the alternative for the deployment ID.
- The name is validated to be unique within the namespace.
- The name must contain only these characters: [a-z,0-9,_] and must be maximum 36 characters long.
- Optional: Adjust any optional settings for the deployment and then click Create. Optional details include description, tags, hardware and software specifications, and copies.
- Choose the user group that you want to share your deployment with in the Shared with section.
When the deployment is complete, click the deployment name to view the details and to get the URL for sharing the app deployment.
Deploying a code package that contains a Shiny app from GUI
For details on creating a code package, refer to Code packages.
To deploy a code package that contains a Shiny app from GUI:
- Import a code package that contains your Shiny app files into your deployment space. For more information, seeImporting spaces and projects.
- Locate the app in the Assets list.
- Go to the action menu for your asset and click Deploy.
- From the folder list, select the parent folder of your Shiny app and press the Create deployment button.
- Enter your deployment name.
- Optional: In the Serving name field, provide the name to be used as the alternative for the deployment ID.
- The name is validated to be unique within the namespace.
- The name must contain only these characters: [a-z,0-9,_] and must be maximum 36 characters long.
- Optional: Adjust any optional settings for the deployment and then click Create. Optional details include description, tags, hardware and software specifications, and copies.
- Choose the user group that you want to share your deployment with in the Shared with section.
Optional settings for deployment
Setting | Description |
---|---|
Hardware specification | Choose a hardware configuration to match your app |
Copies | The number of copies to create if you want to increase the availability of the app. The maximum number of copies is 10. |
Share with | Choose whether to share with: - Anyone who has the URL - Authenticated users (logged in to Cloud Pak for Data) - Collaborators in the deployment space |
Parent topic: Deploying Shiny apps from a deployment space