Getting Started with R

R is a powerful statistical and programming language. However like any command line program, it can have a steep learning curve at the beginning. If you are new to R, check out the following resources to help you get started (and if you have other suggestions, please leave a comment below!).

 

Setting up R & RStudio

 

Note: if you're signed-up for one of our R workshops, you must have R and RStudio installed and working before the workshop. We don't have time during workshops to help people set up their software, but we're very happy to help people get set up beforehand. If you're having trouble, feel free to get in touch, sign-up for Office Hours, or try RStudio Cloud.

 

Installing R on your computer

Installing R and RStudio are normally pretty easy. If you're starting from scratch, install R first and then RStudio. Don't try to install them on a network drive (like your DropBox or Google Drive). If you have questions or problems, try the guides below or let us know.

These are the basic steps:

1) Download R: Follow the links according to the operating system you are running. Download the package, and install R onto your computer. You should install the most recent version (at least version 4.0).

2) Download RStudio: Install RStudio Desktop (free version is fine). Do this after you have already installed R.

 

Video Guide

R Packages

  • Depending which workshop you're taking, you might also need to install some R packages (i.e., addons). The instructor will provide further instructions in the workshop description or welcome email.

 

RStudio Cloud

RStudio Cloud is a virtual environment that allows you to run R in a browser. This is generally recommended for beginners. If you use RStudio Cloud for a workshop, you won’t have to install any software or data on your computer. The instructor will send a link to a RStudio Cloud project that you can click on to ‘clone’ into your own workspace. The project will contain all the scripts, packages, and data you'll need.

RStudio Cloud functions nearly identical to RStudio Desktop, and works quite well as long as you have reasonably good internet connection. It's not as bandwidth demanding as Zoom, so if you can Zoom you can use RStudio Cloud.

RStudio Cloud requires setting up an account. The free account provides up to 25 hours of project time per month, which is more than enough for a couple of workshops. You can create your RStudio Cloud account with any email address, or use your Google or GitHub credentials. Start here: https://rstudio.cloud/

 

Getting Started with R - Live Training

Self-Paced Tutorials and Short Workshops

  • RStudio Primers are short online tutorials that cover basic concepts. They include videos and short code challenges to complete within the browser. Recommended.

  • RStudio Tutorials are short self-paced tutorials you do right within RStudio. Start by going to the 'Tutorial' tab in RStudio.

  • Introduction to R. Self-paced course by Claudia Engel.

Short Courses

 

Cheatsheets

"Finding the right R function, half the battle is."

- Master Jedi Yoda

 

Base R cheatsheet

R for Ecology cheatsheet (video overview)

RStudio Cheatsheets

 

Comments & Suggestions

Do you know another resource for learning R? Found a broken link? Please let us know by making a comment below.

No comments yet.
Add New Comment