Deploy your Shiny apps easily with shinyapps.io

shiny

In the past I created several shiny apps to display data interactively. Sometimes you might want to share your application with other people and do not have your own server nor the skills to set one up or pay to for it. If you just want to make your shiny app public without any big effort or money you definitely should check out shinyapps.io. They describe their self as a platform as a service (PaaS) for hosting Shiny web apps (applications).

# get package
require(rsconnect)

# change bundle size for bigger aps
options(rsconnect.max.bundle.size = 30000000000)

# set your parameters
mytoken <- "MyTokenID"
mysecret <- "MySecretID"
myname = "MyName" # you could use multiple free accounts 🙂

# connect your account
rsconnect::setAccountInfo(name=myname,
token=mytoken,
secret=mysecret)

# deploy your app
rsconnect::deployApp("Path to the folder of your APP")

To get started you will need the latest version of their rsconnect package. You also need to sign up for an account on their website to get your token and secret (essential for using the service). Being done with this you can configure your account using the setAccountInfo function and deploy your app with deployApp. Two things I struggled with you might want to know about. Put all your script and contents for the app in one folder and remove all setwd() from your scripts. If you have a big app use the rsconnect.max.bundle.size function to solve your size issues.

Make sure you check out my Github for other data driven projects.

Advertisements

Author: inside data blog

data analysis & visualization blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s