BMR 617: Statistical Techniques for the Biomedical Sciences

Installing R

Introduction: understanding what we'll install

R is a statistical computing environment. In it's most basic form, it runs as a command-line tool. This means you can open up a terminal (a text-only interface to your computer's operating system) and interact with R by typing commands and seeing the result. We'll actually do this, just once, to make sure R is installed properly.

While command-line tools are actually very powerful, they are not a very user-friendly way to use software. So as well as installing R, we'll also install a program called RStudio, which is an Integrated Development Environment (IDE). This provides a more user-friendly approach to using the underlying R environment. Note you'll still need to type commands and see the results, but we'll have a better environment to do that in

Installing R

Testing the R installation.

Installing RStudio

Using the console on its own is not very user friendly. Here, we'll install RStudio, which will make things easier going forward. Note we'll still be typing commands, but RStudio will give us lots of useful functionality for managing those commands.

If you've made it this far, you've successfully installed R and RStudio, done some very simple statistics with R, and created your first simple plot. Next time, we'll learn a little bit more about how R works and start to explore some data.