How to upload your Shiny App
Uploading your Shiny App
To upload your own Shiny App to a workspace, first, create a new Shiny App using the App dropdown menu. Then, you will be asked to name the Shiny App and choose a blank template. The template you choose will depend on whether you are using multiple files (
ui.R) or a single file (
app.R) in your application.
Once you created a blank template, navigate to the Shiny App folder in the Files tab, and paste your code into the appropriate files. Note that any libraries that the Shiny App uses will need to be installed in the workspace R Console.
If your Shiny App contains files not included in the template, these can be uploaded directly into your application's folder. Once you are finished editing the source code, you can open your App in the Shiny App tab (you may need to refresh it for the changes to take effect).
For information on how to import data, how to change the tile image or R version that Shiny App is running, see customising your Shiny App article.
Deploying Arihdia's Shiny Apps to a workspace
Aridhia's Shiny Apps can be found on aridhia.shinyapps.io/menu/. From the homepage, you have the option of running the Shiny App on the web or visiting their GitHub repositories from where you can download the App source code for running it locally or in a workspace.
1. Download the App source code
To deploy Aridhia's Shiny App to a workspace, first, you need to navigate to its GitHub repository and download the Shiny App repository as a ZIP file.
Unzip the file, you will have a folder containing all the App files inside. Move into the repository folder and select all the files/folders within, click on the right-button and compress them into one single ZIP file. It is important that you do not compress the repository folder, but the files inside.
Alternatively, if you are a git user, you can clone the repository using the command line:
git clone <Repository URL>. This will create a folder in your local computer with all the repository files. Zip all the files and folders inside the repository folder.
2. Create a new Shiny App from a template
Move to the workspace and create a new blank Shiny App using the drop-down menu. Choose a name for the new Shiny App.
This will create a new folder in the Files tab with the same name as the new Shiny App. Look for this folder and delete it.
3. Upload the code to a workspace
Then, upload the ZIP file you created to the workspace. Unzip the file using the option on the right-hand menu.
When unzipping in the workspace, you will be asked to give a name to the folder the files will be extracted into. Give it the same name as your newly created Shiny App.
4. Install App dependencies
Move to the Shiny App folder and run the
dependencies.R script. The script will start the R console and install all the packages needed for the Shiny App.
5. Run the Shiny App
Go to the Shiny App tab, click on Refresh and run the new Shiny App.
You will see that the App code appears as a default when you start the Shiny App. If you want to hide the code, go to the Shiny App folder and delete the file called