The RStudio and Shiny Server (RSSS) is a stand-alone managed virtual server that supports research collaborations that use the R statistical software environment, and R Shiny as the web interactive user interface. RSSS provides convenience to researchers through a single-click server set-up mechanism inside the Research Computing Portal, and allows researchers to focus on data analysis and web content development. This Resource is not allocated to you as an individual researcher but rather to research Activities - as such an Activity is needed to access this resource.
How do I create an RStudio and Shiny Server?
First add the RStudio and Shiny Server Resource to your Activity from the Home page, by clicking “Add to Activity”. If you do not have a research Activity yet, you can create one here.
Now that the RStudio and Shiny Server Resource is allocated to your Activity, navigate to the Home Page and click “Create RStudio and Shiny Server”.
A timer will appear on the button and when it finishes counting down, the RStudio and Shiny Server will be ready to use.
How do I connect to my RStudio and Shiny Server?
There are three ways to connect to your RStudio and Shiny Server, depending on what you want to do on the server:
...
Expand | ||
---|---|---|
| ||
This option opens the RStudio Server integrated development environment, where you can develop your R and R Shiny code.
|
Expand | ||
---|---|---|
| ||
This option opens the R Shiny Web App (“web front-end”). It is the end-user facing interface of R Shiny. Click the second button, “View Shiny Site”, to connect to the Shiny Server interactive data web app. |
Expand | ||
---|---|---|
| ||
This option opens the back-end Linux Virtual Machine on which your RStudio Server is running. It is useful if you need to access the file system directly, or need to do administrative work on the Linux command line.
|
Expand | ||
---|---|---|
| ||
You can boost RStudio and Shiny Server by opening the options page (using the options icon to the right of the open button). Your Researcher Desktop will remain in the boosted state for 31 days. It will then downsize. At any time during the last 7 days of the boosted window, you can request an additional 7 days by clicking the "Extend" button. The date and time of the scheduled downsize is displayed above the "Open" button on the Home page. Note: boosting and downsizing require the RStudio and Shiny Server to reboot and any running processes or file transfers will be terminated. |
How do I upload my existing R Shiny web app to my RStudio and Shiny Server?
One of the features of RStudio and Shiny Server is that the web access of the Shiny Server is pre-configured, so the end-user has one-click HTTPS access to the R Shiny web app (see above “Connecting “Connecting to the R Shiny Web App”App”). If you have an existing R Shiny web app that you would like to host on RStudio and Shiny Server, please follow the instructions below to upload your app.
Verify that the R Studio and Shiny Server web app access is working, by visiting the Shiny site (see above “Connecting “Connecting to the R Shiny Web App”App”). You should see the “Welcome to Shiny Server!” default Shiny demo app.
Open RStudio Server (see above “Connecting “Connecting via RStudio Server”Server”).
In the “Files” panel at the bottom right of RStudio, check that the current working folder is
/srv/shiny-server
. This is the default folder that Shiny uses to store web app files.
...
The uploaded Shiny app will now be hosted on your RStudio and Shiny Server. You can verify this by visiting the Shiny site (see above “Connecting to the R Shiny Web App“). When you do so you should see your web app rather than the default welcome site.