-
Notifications
You must be signed in to change notification settings - Fork 0
/
in_03-Setup1_desktop.Rmd
162 lines (91 loc) · 5.61 KB
/
in_03-Setup1_desktop.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
```{r, include=FALSE,echo=FALSE,warning=FALSE,message=FALSE}
library(tidyverse)
library(knitr)
library(kableExtra)
```
# Installing R/R-Studio {#Setup_Desktop .unnumbered}
<br>
If you are brand new, consider skimming through [What are R and R-Studio](#WhatIsR)
To use it on your own computer we need to do two things. <br>
- First, teach the computer to 'speak R'.
- Secondly download the RStudio software.<br><br>
In this section, I first include a video where I go through it - and then written instructions going over the same thing.
<br>
------------------------------------------------------------------------
### Video instructions {#Setup_DesktopVideo .unnumbered}
Here's a video where I install R/R-Studio on my mac. It should take less than 10 minutes to follow along & there are subtitles. I will try to also put up another for my windows machine.
<details>
<summary>[Click to expand & watch]{style="color: #1388aa;"}</summary>
<br>
::: {style="max-width:640px"}
::: {style="position:relative;padding-bottom:100%"}
<iframe id="kaltura_player" src="https://cdnapisec.kaltura.com/p/2356971/sp/235697100/embedIframeJs/uiconf_id/41416911/partner_id/2356971?iframeembed=true&playerId=kaltura_player&entry_id=1_009n7kh8&flashvars[streamerType]=auto&flashvars[localizationCode]=en&flashvars[sideBarContainer.plugin]=true&flashvars[sideBarContainer.position]=left&flashvars[sideBarContainer.clickToClose]=true&flashvars[chapters.plugin]=true&flashvars[chapters.layout]=vertical&flashvars[chapters.thumbnailRotator]=false&flashvars[streamSelector.plugin]=true&flashvars[EmbedPlayer.SpinnerTarget]=videoHolder&flashvars[dualScreen.plugin]=true&flashvars[hotspots.plugin]=1&flashvars[Kaltura.addCrossoriginToIframe]=true&&wid=1_i392r73r" width="640" height="640" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow="autoplay *; fullscreen *; encrypted-media *" sandbox="allow-downloads allow-forms allow-same-origin allow-scripts allow-top-navigation allow-pointer-lock allow-popups allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation" frameborder="0" title="R-Tutorials Video 1. Installing R and R studio on a mac" style="position:absolute;top:0;left:0;width:100%;height:100%;border:0">
</iframe>
:::
:::
<br>
</details>
------------------------------------------------------------------------
## Written Instructions
If you're not a video sort of person, here are written instructions:
### 1. Installing R. {#Setup_R .unnumbered}
First, we teach the computer to 'speak R'.
Go here: <https://posit.co/download/rstudio-desktop/>. Click the Install R button <br>
```{r, Setup_Fig1, echo=FALSE, fig.cap = "Click here!",fig.align='center'}
knitr::include_graphics('./index_images/im_02Setup_4InstallR.png')
```
Click the link and you will go to a terrifying website called CRAN R.
```{r, Setup_Fig2, echo=FALSE, fig.cap = "*Choose your computer type*",fig.align='center'}
knitr::include_graphics('./index_images/im_02Setup_5CranR.png')
```
#### If you are on a WINDOWS/PC computer {#Setup_R_PC .unnumbered}
<details>
<summary>[Click to expand]{style="color: #1388aa;"}</summary>
<br>
```{r, Setup_Fig3, echo=FALSE, fig.cap = "*Choose your computer type*",fig.align='center'}
knitr::include_graphics('./index_images/im_02Setup_6WINDOWS.png')
```
Click the "install for the first time" link and follow through to install R - EVEN IF YOU ALREADY HAVE R AND R STUDIO INSTALLED. <br><br>
Say yes to all the default options. Send Dr G a message if you get stuck <br>
<br>
</details>
#### If you are on a MAC/AppleMac {#Setup_R_Mac .unnumbered}
<details>
<summary>[Click to expand]{style="color: #1388aa;"}</summary>
<br>
If you are a MAC user, you will need [EITHER]{.underline} one of these two files. If your computer is new, try the top one, if it's older try the second - the wrong one simply won't work.
```{r, Setup_Fig4, echo=FALSE, fig.cap = "*Choose your computer type*",fig.align='center'}
knitr::include_graphics('./index_images/im_02Setup_7MAC.png')
```
1. Click the filename to download <br>
2. MOVE THE DOWNLOAD OUTSIDE YOUR DOWNLOAD FOLDER (they have a weird bug.) Put it on your desktop
3. Open the download and follow the instructions. <br>
4. You can delete the download.
If you have issues, try watching my video at the top and see if that solves it. Or talk to Dr G
<br>
</details>
### 2. Installing R studio {#Setup_RStudio .unnumbered}
Go back here: <https://posit.co/download/rstudio-desktop/>. Click the Install R-Studio button
```{r, Setup_Fig5, echo=FALSE, fig.align='center'}
knitr::include_graphics('./index_images/im_02Setup_8InstallRstudio.png')
```
#### If you are on a WINDOWS/PC computer {#Setup_RStudio_PC .unnumbered}
<details>
<summary>[Click to expand]{style="color: #1388aa;"}</summary>
<br>
Install the same way you install any new software
<br>
</details>
#### If you are on a Mac computer {#Setup_RStudio_Mac .unnumbered}
<details>
<summary>[Click to expand]{style="color: #1388aa;"}</summary>
<br>
```{r, Setup_Fig6, echo=FALSE, fig.cap = "*Will look different for windows*",fig.align='center'}
knitr::include_graphics('./index_images/im_02Setup_9RstudioMacinstall.png')
```
- Download the dmg file, click to open, then DRAG it over to applications.
- If it asks to overwrite, say yes.
It might get angry at this stage if your mac is very out of date. Your choices are probably to backup your computer, update your operating system and reinstall R. OR! Just use RStudio online rather than downloading it at all. Feel free to chat with Dr G about options.
<br>
</details>
<br>