Shiny Server on CentOS

[This article was first published on Kevin Davenport » 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.

I’ve been enjoying working with Joe Cheng’s Shiny Server and wanted to create a quick step-by-step guide on installing it on an AWS CentOS EC2 instance as the standard Shiny Server instructions assume the typical dependencies are installed:

1. Shiny’s instructions say to install libssl-dev (sudo yum install libssl-dev), here is the CentOS equivalent :
sudo yum install openssl-devel

2. Install github to install Node.js from git
sudo yum install git

3. Install a C compiler
sudo yum install gcc
sudo yum install sudo gcc-c++

3. Install Node.js, checking nodejs.org to verify the current stable version as “v0.10.12″ might be old at the time of reading.
git clone https://github.com/joyent/node.git
cd node
git checkout v0.10.12
./configure && make && sudo make install

4. Install R (if epel is installed)
Look in /etc/yum.repos.d/ to see all installed repos, sudo vim them and change enabled from 1 to 0

sudo yum install R

5. Install npm
sudo yum install npm

6. Install Shiny server
sudo npm install -g shiny-server

7. Config shiny server
Check here

8. Start shiny server
sudo shiny-server

9. Install libraries
sudo su – -c “R -e \”install.packages(‘ggplot2′, repos=’http://cran.rstudio.com/’)\””

To leave a comment for the author, please follow the link and comment on their blog: Kevin Davenport » R.

R-bloggers.com 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)