Shiny Server — RCG Handbook

Shiny Server

Shiny Server allows you to deploy your own interactive R applications on the web. [examples]

RCG’s instance of Shiny Server lives at

Deploying an Application

  1. For this example, we’ll assume you have a Shiny application ready to deploy in a folder called myapp on your computer.
  2. Sign up for the rcg-shiny-users maillist. [tutorial]
  3. Wait ~30 minutes for your maillist membership to become active.
  4. Use an SFTP client to connect to [tutorial] Use your SFU computing ID (e.g., jsixpack) and password.
  5. You will be placed in your home directory by default: /home/your_username.
  6. Open the ShinyApps folder. Upload the myapp folder you prepared in step 1 inside the ShinyApps folder.
  7. Use a web browser to test your app:

Advanced Users

If you are comfortable with the Unix command line, you may also SSH to 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.

Error Logs

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 and run Rscript ~/path/to/server.R to reveal error messages and missing libraries. Repeat for ~/path/to/ui.R.

Compute Power

If your application has heavy computational requirements please contact so we can point you to other hosting resources within RCG and elsewhere on campus.

When your SFU account expires...

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 should contact