-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.Rmd
60 lines (34 loc) · 3.91 KB
/
setup.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: 'Setup Instructions'
output:
html_document:
toc: false
---
\
<!--
During the course we will be using both R and RStudio. If you're bringing your own laptop (see [FAQ](index.html)) please follow the instructions under **_Core Software_** and **_Get the Data_** headings before you arrive. No worries if you are having problems installing the software, we will run a drop-in session from 14:00 - 15:30 on Monday 2^nd^ December in room FN113 in the [Fraser Noble building](images/uoa_map.png){target="_blank"} (building No. 7 on the map) to troubleshoot installation problems (bring your laptop!). Alternatively you can [email one of the instructors](People.html) prior to the course.
-->
During the course we will be using both R and RStudio. Please follow the instructions under **_Core Software_** and **_Get the Data_** headings before starting the course. No worries if you are having problems installing the software, we'll run a drop-in session from 14:00 - 15:00 on Tuesday 3^rd^ December on Blackboard Collaborate to troubleshoot installation problems. Alternatively you can [email one of the instructors](People.html) prior to the course.
\
## Core Software
**Install R.** Install the latest version of R (4.4.0). Download and install R for [Windows](http://cran.r-project.org/bin/windows/base/){target="_blank"}, [Mac](http://cran.r-project.org/bin/macosx/){target="_blank"} (download the latest R-4.x.x.pkg file for your appropriate version of Mac OS) or [linux](https://cran.r-project.org/bin/linux){target="_blank"} (choose your flavour of linux).
**Install RStudio.** Download and install [RStudio Desktop](https://www.rstudio.com/products/rstudio/download/){target="_blank"}.
You will need to download and install R and RStudio separately. **R** is the underlying statistical computing environment. **RStudio** is a graphical integrated development environment (IDE) that makes using R a little easier. You need to install R before you install RStudio.
\
See [Section 1.1](https://intro2r.com/install_r.html#install_r) and [Section 1.2](https://intro2r.com/installing-rstudio.html#installing-rstudio) of our [Introduction to R book](https://intro2r.com) for more details about installing R and RStudio. We have also produced a video walking you through the process of installing R and RStudio and also a brief introduction to RStudio.
\
<iframe src="https://player.vimeo.com/video/415501284" width="640" height="480" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
\
And see this video for a short introduction to using RStudio.
\
<iframe src="https://player.vimeo.com/video/416391353" width="640" height="480" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
\
## Get the Data
Click the **[<i class="fa fa-download"></i> Data](data.html)** link on the navbar at the top of the course website and follow one of the two options described. You can download all the data needed by downloading individual data sets as needed at the **[<i class="fa fa-download"></i> Data](data.html)** page.
\
## R markdown
Installing R markdown is not required for this course. However, for those of you who are interested in using R markdown to create reproducible reports (or websites like this one!) follow these [instructions](https://intro2r.com/install-rm.html#install-rm){target="_blank"} to install R markdown on your computer. Although we will only scratch the surface of R markdown during this course we plan to run a webinar on this subject in the near future.
\
*A few notes*:
- If you're using Windows you might see errors about not having permission to modify the existing libraries -- disregard these. You can avoid this by running RStudio as an administrator (right click the RStudio icon, then click "Run as Administrator").
- If you really dislike using RStudio (or just fancy a change) then feel free to use an alternative IDE or script editor (see [FAQ](index.html)).