R: execute on Amazon EC2 instance

(Applicable for Ubuntu 14.04 x86_64 , Amazon EC2 micro Instance)

  1. Install R:

1.1: Append a valid cran mirror to the  /etc/apt/sources.list file:

1.2: Update package info:

If the following error pops up:

Resolve it with:

1.3 Try again 1.1: it should now be smooth

1.4: Install R with  sudo apt-get install r-base