Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Latest commit

 

History

History
70 lines (53 loc) · 5.49 KB

setup.md

File metadata and controls

70 lines (53 loc) · 5.49 KB
title
Setup

Setup

You will need to set up software, accounts and R package installations ahead of the lesson.

Software and accounts

Please sign up to the following before the course:

  1. We will be using Zoom for videoconferencing. Please download the client if you do not already have it downloaded.
  2. The Open science framework is a web service for sharing your work, providing time stamps for pre-registration, and is a preprint server. Please create an account, or log in with your ORCid if you have one.
  3. Github - GitHub is a web-hosting and collaboration service based on Git version control. Please create an account in advance.
  4. Either connect your GitHub account to RStudio.cloud (recommended) OR follow the local RStudio setup instructions.

Local RStudio setup

If you would prefer to use your local copy of RStudio, you will need to install some software, and make sure that they are connected to one another. This may require you to get permission from your IT services department, so it is particularly important that you do this ahead of time. If you cannot make any part of these instructions work before the session, then please sign up to RStudio Cloud using your GitHub account instead.

Installations

You will need to install the following:

  1. Git - Version control software
  2. R - The R programming language
  3. RStudio - Intergrated Development Environment for R

Connecting Rstudio and Git

We will be using Rstudio's integrated version control. In order to do this, you will need to make sure that Rstudio can find Git. The instructions here will help you check if this is already done, and how to set it up if necessary. You may have to upgrade your version of RStudio if you have an old version installed.

(Optional) Windows users: connect Git Bash and RStudio

If you are a Windows user, you may also want to connect Git Bash to RStudio. This will allow you type git commands in the RStudio terminal (in addition to using the version control buttons inside RStudio). To do so, open RStudio, choose Tools > Global Options > Terminal and ensure that you have git-bash chosen.

Packages in R

Whether you are using local RStudio or Rstudio.cloud, please install these packages in R before you begin.

  1. Create a new project:
  • In Rstudio.cloud, open Your Workspace and choose New Project > New Project. You will see a message saying "Deploying" and then a new RStudio project should open in the browser. At the top of the page click where it says "Untitled Project" and name your project "roar"
  • OR open local Rstudio. Save any existing work, then choose File > New Project > New Directory > New Project, name your directory "roar" and click Create Project (don't tick the box to initialise a git repository as we'll do this later). Click 'yes' at the pop up window asking to restart R.
  1. Install the following R packages, by coping and pasting the following into the console tab:
list.of.packages <- c("tidyverse", "data.table", "knitr", "markdown", "rmarkdown")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)

Prerequisites

We expect you to have some familiarity with R before the course begins. If you aren't already familiar with R, we recommend swirl, or this Software Carpentry lesson.

Swirl is done interactively in the R terminal, some brief instructions are below:

install.packages("swirl")
library(swirl)
# You may be asked to clear your environment at this point - please do that.
swirl()
# Follow instructions and then choose a course.  The recommended ones are:
# 1: R Programming: The basics of programming in R
# 4: Exploratory Data Analysis: The basics of exploring data in R

Home setup tips

In this workshop, you will be learning by "coding along" with the instructors. If you're working from home this means that you will need to have both the window for the tool you will be learning about (e.g. RStudio, or GitHub) and the window for the Zoom video conference client open.

In order to see both at once, we recommend using one of the following set up options:

  • Two monitors: If you have two monitors, plan to have your work following the instuctor on one monitor and the video conferencing software on the other.
  • Two devices: If you don't have two monitors, do you have another device (tablet, smartphone) with a medium to large sized screen? If so, try using the smaller device as your video conference connection and your larger device (laptop or desktop) to follow along with what instructor is doing.
  • Divide your screen: If you only have one device and one screen, practice having two windows (the video conference program and one of the tools you will be using at the workshop) open together. How can you best fit both on your screen? Will it work better for you to toggle between them using a keyboard shortcut? Try it out in advance to decide what will work best for you.

This blog post includes detailed information on how to set up your screen to follow along during the workshop.