Shiny Server on CentOS

June 29, 2013
By

(This article was first published on Kevin Davenport » R, and kindly contributed to R-bloggers)

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 his blog: Kevin Davenport » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.