Deploying your app on Amazon AWS with ramazon

RStudio offers a great facility for Shiny apps deployment, named shinyapps.io. This hosting web platform is perfectly integrated with RStudio and lets you deploy your app by hitting a button. You can find convenient tutorials at http://shiny.rstudio.com/articles/shinyapps.html.

A large number of developers are used to the structure and facilities of Amazon AWS, which provides an integrated and solid framework for web application deployment.

Amazon AWS is one of the best-known services of its kind. However, publishing apps on it can be laborious for non-expert users, requiring you to remotely log in on a Linux server and perform terminal downloading and installation activities. That is why I have developed the ramazon package, which lets you publish a Shiny application on Amazon simply by running a function. This recipe exposes the usage of the package.

Getting ready

In order to install a Shiny server on Amazon AWS, you first need to create an EC2 instance on Amazon AWS. This basically means you will have to create an up and running Linux server on which you can host your Shiny application. If you need help with this, I have provided a detailed tutorial on how to do this at http://www.slideshare.net/AndreaCirillo1/how-to-launch-an-aws-ec2-instance-51349866?ref=https://andreacirilloblog.wordpress.com/2015/08/18/deploy-your-shiny-app-on-aws-with-a-function/.

How to do it...

  1. Retrieve your server public DNS from Amazon AWS:
    How to do it...
  2. Retrieve your server key from Amazon AWS:
    How to do it...
  3. Install the ramazon package from GitHub.

    Currently, the ramazon package is only available through GitHub. In order to use it, you will have to execute the following code. This code installs devtools, which lets you download ramazon from the GitHub repo:

    install.packages("devtools")
    library(devtools)
    install_github("andreacirilloac/ramazon")
    library(ramazon)
  4. Run ramazon().
    ramazon(public_DNS ="your_Public_DNS", key_pair_name = "your_key_pair_name")
  5. Enjoy your app.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset