Deploying Shiny apps with

[This article was first published on Andrew Brooks - R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

So I’ve been messing around with Shiny for a year or so now. It’s great tool and getting greater.

the good:

  • capability to rapidly build an interactive visualization with the full universe of R packages to choose from for the computation engine and visualization options.
  • ability to code and house the visualization/app in the same language/place as the code that actually conducts the analysis.
  • integrates seamlessly into analyst’s workflow.

the bad:

  • sharing can be hard
  • developed by analysts, used by analysts … and maybe others
  • need to download and run R to power app

the ugly:

  • if your app is ugly, it doesn’t have to be! Make it prettier with one of the 951,233,521 R graphics packages out there.

Sharing Shiny apps

Option 1: Rstudio Shiny Server: If you have a linux server and the IT chops to configure it, you can set up your very own Shiny Server to host your whizbang Shiny apps. We actually set one up at my company, and it is pretty awesome… however I didn’t set it up and I don’t pay for the server.

Option 2: If you’re just a mere human, like myself, without a server running in your house to host your app on some domain (which also costs $$), is for you!

It’s pretty nifty. You can deploy all your apps to the cloud by interacting soley with R and a little configuration within the interface in the web browser.
For free. is the successor to the Glimmer and Spark hosting services Rstudio experimented around 2012-2013. I setup a Glimmer account last year (which still works as of now – October 2014). You actually interact with Rstudio in the internet browser. I never established a steady workflow… unsure if I should be developing my apps locally and then SSHing into the Glimmer server and copying the apps there, or developing on the server’s file system…

In any case, makes things even easier. Simply develop and test your apps locally on your computer, and when you’re ready to deploy to the world, you simply run:


Getting started with

A comprehensive walkthrough can be found here. But the gist of it is pretty simple.

First register for an account here.

Then run the following R code:

shinyapps::setAccountInfo(name='yourUserNameHere', token='yourTokenHere', secret='yourSecretHere')

Then navigate to directory of app


And voila – you’ve deployed yourFavoriteApp Shiny App to the world… viewable at the URL something like: is still very much a work-in-progress. For example, It’s currently not possible to delete deployed apps. However, for free hosting of multiple apps with an easy-to-use R and web interface and unintrusive workflow, it’s pretty good start.

Proof that it works:

This is a visualization around the IPIP-NEO personality test. I generated some fake personalities for some familiar names (if you’re a GoT geek).

Also viewable at the URL:

Update (9/1/2015): It appears I’ve been bumping up against my monthly limit of free hours with, so if the app below is not rendered, that’s why. If you’re hosting an app on a website like this, you can change Idle Instance Timeout time in Settings to 5 minutes instead of the default of 15 to conserve some hours.

To leave a comment for the author, please follow the link and comment on their blog: Andrew Brooks - R. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)