forked from katiejolly/met-council-R
-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-intro.Rmd
34 lines (18 loc) · 2.31 KB
/
01-intro.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
# Installing R and RStudio {#setup}
R is the underlying language while RStudio is typically how you will interact with it. RStudio is an integrated development environment (IDE) that is generally considered to be one of the best available. It's also entirely open source and free (unless you want special features) which is unique among IDEs of its quality. The IDE means that rather than just being a place for you to write code, "it includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management" (RStudio). In short, this means it makes your code-writing so much smoother.
## RStudio Cloud
In this workshop, we will be using the [RStudio cloud](https://rstudio.cloud/) option. I don't recommend this for long-term use, but it's an awesome resource that makes learning R [easier](https://rstudio.cloud/learn/guide) and [less dependent](https://www.causeweb.org/cause/sites/default/files/eCOTS%202018%20-%20Frictionless%20onboarding%20to%20data%20science%20with%20RStudio%20Cloud.pdf) on software installation. Each project is allocated 1GB of RAM which is fine for this workshop, but is not enough for joining large datasets or fitting complicated models.
To create your cloud account, go to the [sign-up page](https://rstudio.cloud/). Click "Get Started" and enter credentials for yourself.
Once you're logged in, your workspace should look something like this:
```{r echo = FALSE}
knitr::include_graphics("images/rstudiocloud.png")
```
## RStudio Desktop
In order to run RStudio on your desktop, you should have [R](https://cran.r-project.org/mirrors.html) and [RStudio Desktop](https://www.rstudio.com/products/rstudio/download/) downloaded, *in that order*.
Here is one guide to walk you through the process: https://www.ics.uci.edu/~sternh/courses/210/InstallingRandRStudio.pdf
Note that you should just download the most recent version, the version numbers in that document are likely out of date.
Once you have both installed, open RStudio and see if it looks like this (minor deviations are totally fine):
```{r echo=FALSE, out.width="600px"}
knitr::include_graphics("https://i1.wp.com/www.bytemining.com/wp-content/uploads/2011/03/rstudio.png")
```
If you have any questions or run into issues, feel free to stop by my cube or email me!