Please complete the following steps to get all software and accounts set-up for this class. This should take between 60-90 minutes. If anything doesn’t work, please speak to me after class or during office hours.


  • Please install/re-install the following to update versions
    1. R programming language and software environment for statistical computing and graphics
    2. RStudio (preview version) integrated development environment (IDE) for R. If prompted to install command line developper tools, select “Install”.
  • For each of the following, install if you haven’t already
    1. Git
    2. LaTeX
    3. A working development environment (C compiler, python, etc.)
      • Mac: Latest non-beta version of Xcode (4.5GB)
      • Windows: Latest version of Rtools (103MB)


  1. RStudio Server: Ensure you can login to Middlebury’s RStudio Server from your browser at go/rstudio/. Note: If you are off-campus you must first log into the Middlebury VPN.
  2. GitHub: We will use GitHub to submit all homeworks (via drag-and-drop on the webpage and not via RStudio):
    • New users:
      • Go to, create an account using your account, and verify your email.
      • Update your profile picture.
    • Everyone: Direct Message me (albert) your GitHub login ID on Slack
  3. Kaggle: Create an account at

Testing R Markdown

Everyone please test that you can render R Markdown files to both PDF and HTML formats:

PDF Output using LaTeX

  1. Open RStudio and starting in the menu bar, go to File -> New File -> R Markdown…
  2. If prompted to install any packages, say yes.
  3. Give it an arbitrary title and select the PDF output format.
  4. A document Untitled1 should pop-up. In that panel, click on Knit.
  5. Give the file a name and save

A PDF document should pop-up.

HTML Output Published to

  1. Click on the downward point black arrow next to the Knit button and select Knit to HTML
  2. On the top right of the pop-up click “Publish”
  3. Select RPubs -> Publish
  4. Your browser should pop-up. Create an account on RPubs.
  5. Give your file an arbitrary title and a desired URL.

The same analysis as the PDF above should appear on a webpage.