| 1 |
echo "deb http://cran.rstudio.com/bin/linux/ubuntu precise/" >> /etc/apt/sources.list |
| 2 |
|
| 3 |
apt-get update |
| 4 |
|
| 5 |
# --force-yes to handle the un-verified deb |
| 6 |
apt-get install r-base-dev r-base -y --force-yes |
| 7 |
|
| 8 |
apt-get install gdebi git gcc g++ -y |
| 9 |
|
| 10 |
# R is too old for CRAN's latest Rcpp |
| 11 |
wget http://cran.r-project.org/src/contrib/Archive/Rcpp/Rcpp_0.10.5.tar.gz -O Rcpp_0.10.5.tar.gz |
| 12 |
R CMD INSTALL Rcpp_0.10.5.tar.gz |
| 13 |
|
| 14 |
R -e "install.packages('shiny', repos='http://cran.rstudio.com/')" |
| 15 |
|
| 16 |
mkdir -p /srv/shiny-server |
| 17 |
|
| 18 |
cp -R /usr/local/lib/R/site-library/shiny/examples/* /srv/shiny-server/ |
| 19 |
|
| 20 |
# Get and build cmake |
| 21 |
wget http://www.cmake.org/files/v2.8/cmake-2.8.11.2.tar.gz |
| 22 |
tar xzf cmake-2.8.11.2.tar.gz |
| 23 |
cd cmake-2.8.11.2 |
| 24 |
./configure |
| 25 |
make |
| 26 |
make install |
| 27 |
|