Shiny Server on CentOS

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 to verify the current stable version as “v0.10.12” might be old at the time of reading.
git clone
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=’’)\””