Shiny Server on CentOS
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/’)\””
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.