Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created June 8, 2013 14:06
Show Gist options
  • Save randyzwitch/5735279 to your computer and use it in GitHub Desktop.
Save randyzwitch/5735279 to your computer and use it in GitHub Desktop.
Using R on Amazon EC2 - Part 1
#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