You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Draft -- please don't follow these instructions yet!

Make sure R is installed!

We assume that you have installed R. If not, follow the instructions from last lectures to install R.

Install RStudio

RStudio is a powerful and easy to use open source IDE for R. Download the appropriate version for your OS from http://www.rstudio.com/ide/download/desktop and install it on your computer. 

R Packages

In this workshop, a few different R packages will be used. To install R packages, you can either follow the steps described here or use the package installation tool in RStudio (Tools -> Install Packages... ). Please install the following packages:

Python

Although our focus will be on R, we will cover the interaction between R and Python. In order to install Python on your computer, you can follow one of Iain's installation guide: Modelling with Python Workshop - Installation Guide for OSX, Modelling with Python Workshop - Installation Guide for Linux, Modelling with Python Workshop - Installation Guide for Windows . You only need to follow the sections "Install Python" and "Install setuptools". For this workshop, we will keep the required Python knowledge to a minimum. However, since Python will be used extensively in other workshops, it's a good idea to go over some Resources for Learning Python.

Installing RPy2

OSX
  1. Open a terminal
  2. Type sudo python -m easy_install rpy2==2.2
  3. easy_install will download and install RPy2 to your computer
Linux
  1. Open a terminal.
  2. Type easy_install rpy2==2.2
  3. easy_install will download and install RPy2 to your computer
Windows
  1. Open a command prompt and navigate to your Python folder's scripts folder, e.g. by running "cd C:/Python27/Scripts"
  2. Type easy_install rpy2==2.2
  3. easy_install will download and install RPy2 to your computer

Testing your installation

Please complete the testing tasks at https://wikis.mit.edu/confluence/x/bUMYBQ.

  • No labels