Shiny Server allows you to deploy your own interactive R applications on the web. [examples]
RCG’s instance of Shiny Server lives at https://shiny.rcg.sfu.ca/.
- For this example, we’ll assume you have a Shiny application ready to deploy in a folder called myapp on your computer.
- Sign up for the rcg-shiny-users maillist. [tutorial]
- Wait ~30 minutes for your maillist membership to become active.
- Use an SFTP client to connect to shiny.rcg.sfu.ca. [tutorial] Use your SFU computing ID (e.g., jsixpack) and password.
- You will be placed in your home directory by default: /home/your_username.
- Open the ShinyApps folder. Upload the myapp folder you prepared in step 1 inside the ShinyApps folder.
- Use a web browser to test your app: https://shiny.rcg.sfu.ca/u/your_username/myapp
If you are comfortable with the Unix command line, you may also SSH to shiny.rcg.sfu.ca after signing up for the rcg-shiny-users maillist.
This is also the recommended method for installing R packages required by the applications you deploy.
If something goes horribly wrong with your application, Shiny Server will record some relevant information in /home/your_sfu_computing_id/log.
There may not be any logs recorded if your application responds with “An error has occurred. Check your logs or contact the app author for clarification”. In this case, SSH into shiny.rcg.sfu.ca and run
Rscript ~/path/to/server.R to reveal error messages and missing libraries. Repeat for
If your application has heavy computational requirements please contact firstname.lastname@example.org so we can point you to other hosting resources within RCG and elsewhere on campus.
Your application will remain active until you delete it, or until your SFU computing ID expires.
Undergrads taking STAT courses: please contact your professor or TA for assistance. Please be sure to wait 30 minutes after adding yourself to the
rcg-shiny-users maillist before your first connection attempt.
Researchers requiring assistance with shiny.rcg.sfu.ca should contact email@example.com.