Last active
September 23, 2015 05:13
-
-
Save sahilseth/7e2f0bbcfa198d6e1c52 to your computer and use it in GitHub Desktop.
Installing R for RStudio on a server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## make a dir to install | |
sudo mkdir -m 775 /apps | |
chown sahilseth /apps | |
## download to a tmp space | |
cd /tmp | |
wget http://cran.r-project.org/src/base/R-3/R-3.2.2.tar.gz | |
tar -zxvf R-3.2.2.tar.gz | |
cd R-3.2.2 | |
./configure --prefix /apps/R/3.2.2/ --enable-R-shlib --enable-R-profiling \ | |
--enable-memory-profiling --enable-R-static-lib --enable-BLAS-shlib \ | |
--enable-long-double --with-cairo --with-libpng --with-jpeglib \ | |
--with-x --with-tcltk | |
## install | |
make | |
make pdf | |
make info | |
make install | |
## change the group | |
chgrp admin -R /apps/ | |
## change /etc/rstudio/rserver.conf and add this line: | |
## rsession-which-r=/apps/R/3.2/bin/R | |
## restart rstudio | |
sudo /usr/lib/rstudio-server/bin/rstudio-server restart | |
## pkg upgrade | |
upgrade(packageStatus()) | |
source("http://bioconductor.org/biocLite.R") | |
biocLite() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## make a dir to install | |
sudo mkdir -m 775 /apps | |
chown sahilseth /apps | |
## download to a tmp space | |
cd /tmp | |
wget https://stat.ethz.ch/R/daily/R-devel.tar.gz | |
tar -zxvf R-devel.tar.gz | |
cd R-devel | |
./configure --prefix /apps/R/devel/ --enable-R-shlib --enable-R-profiling \ | |
--enable-memory-profiling --enable-R-static-lib --enable-BLAS-shlib \ | |
--enable-long-double --with-cairo --with-libpng --with-jpeglib \ | |
--with-x --with-tcltk | |
## install | |
make | |
make pdf | |
make info | |
make install | |
## change the group | |
chgrp admin -R /apps/ | |
## change /etc/rstudio/rserver.conf and add this line: | |
## rsession-which-r=/apps/R/3.2/bin/R | |
## restart rstudio | |
sudo /usr/lib/rstudio-server/bin/rstudio-server restart | |
## pkg upgrade | |
upgrade(packageStatus()) | |
source("http://bioconductor.org/biocLite.R") | |
biocLite() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libreadline seems essential, without it keystrokes are not recognized properly.
http://stackoverflow.com/a/18590261