-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr_and_rstudio.Rmd
55 lines (35 loc) · 2.85 KB
/
r_and_rstudio.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: "Installing R and RStudio"
params:
r_legacy_version: 3.3.3
rstudio_version: 2021.09.2+382
rstudio_legacy_version: 1.1.463
---
## Install software
To complete these installs, you must have administrator privileges on your machine. Choose the version appropriate for your operating system. You can also watch a video for a [Mac](https://youtu.be/Oy9BPxt8gQ0?t=270), or a [Windows](https://youtu.be/7f9ADV2v7CI?t=336) install (you only need to install R and RStudio, and none of the other programs mentioned in the videos). Please also note that the versions of R and RStudio in the video are older. Instead, install or update to the latest version supported by your operating system.
1. R https://cran.r-project.org/
- version `r getRversion()` (only for macOS Yosemite or older: legacy version `r params$r_legacy_version`)
- Choose among "Download and Install R" section (**not** "Source Code for all Platforms").
- You **must** have R installed before proceeding to step 2.
1. RStudio https://rstudio.com/products/rstudio/download/#download
- Version `r params$rstudio_version` (only for macOS El Capitan and older: legacy version `r params$rstudio_legacy_version`)
- Select FREE Desktop version.
- Choose among "Installers for Supported Platforms" section (**not** "Zip/Tarballs") or follow the link to older versions of RStudio if you need a legacy version.
## Check that it worked
After you open RStudio, it should look like the screenshot below with the left panel (the "console") listing the most current version of R for your operating system ![](images/one.png){width=3%}.
![](images/version.png)
## Troubleshooting
### RStudio looks incorrect
If you only see a single panel instead of 3 like in the example image, you likely opened base R instead of RStudio. Look for the RStudio symbol ![](images/rstudio_logo.png){width=2%} to open the correct program.
If you confirmed RStudio is open, but don't see the same panels as depicted above then in RStudio menu bar select View > Panes > Show all panes.
### My computer won't let me open the downloaded files to install them
**Mac**: right-click and choose "Open With" > "Installer.app (default)" and choose "Open" when prompted if you are sure you want to open the file
**Windows**: right-click and choose "Run as administrator"
### Still doesn't work
Please come to one of the office hours for your course to get help.
## Further resources
- [How to Install R](http://cran.stat.sfu.ca/doc/FAQ/R-FAQ.html#How-can-R-be-installed_003f)
- [R FAQ](http://cran.r-project.org/doc/FAQ/R-FAQ.html)
- [R Installation and Administration Manual](http://cran.r-project.org/doc/manuals/R-admin.html)
- [How to Use RStudio](https://support.rstudio.com/hc/en-us/sections/200107586-Using-RStudio)
- [RStudio Public Discussion & Troubleshooting Guide](https://support.rstudio.com/hc/en-us/sections/203994097-RStudio-IDE)