Created
June 8, 2013 14:06
Using R on Amazon EC2 - Part 1
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
#Create a user, home directory and set password | |
sudo useradd rstudio | |
sudo mkdir /home/rstudio | |
sudo passwd rstudio | |
sudo chmod -R 0777 /home/rstudio | |
#Update all files from the default state | |
sudo apt-get update | |
sudo apt-get upgrade | |
#Add CRAN mirror to custom sources.list file using vi | |
sudo vi /etc/apt/sources.list.d/sources.list | |
#Add following line (or your favorite CRAN mirror) | |
deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu precise/ | |
#Update files to use CRAN mirror | |
#Don't worry about error message | |
sudo apt-get update | |
#Install latest version of R | |
#Install without verification | |
sudo apt-get install r-base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment