-
-
Notifications
You must be signed in to change notification settings - Fork 515
Use sentence line breaks #933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
ed0d617
2202c39
1cde9ea
27e47a8
591e6f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,90 +4,97 @@ title: Setup | |||||
|
|
||||||
| ## Preparations | ||||||
|
|
||||||
| Data Carpentry's teaching is hands-on, and to follow this lesson | ||||||
| learners must have R and RStudio installed on their computers. They also need | ||||||
| to be able to install a number of R packages, create directories, and download | ||||||
| files. | ||||||
| Data Carpentry's teaching is hands-on, and to follow this lesson learners must have R and RStudio installed on their computers. | ||||||
| They also need to be able to install a number of R packages, create directories, and download files. | ||||||
|
|
||||||
| To avoid troubleshooting during the lesson, learners should follow the | ||||||
| instructions below to download and install everything beforehand. | ||||||
| If the computer is managed by their organization's IT department | ||||||
| they might need help from an IT administrator. | ||||||
| To avoid troubleshooting during the lesson, learners should follow the instructions below to download and install everything beforehand. | ||||||
| If the computer is managed by their organization's IT department they might need help from an IT administrator. | ||||||
|
|
||||||
| ### Install R and RStudio | ||||||
|
|
||||||
| R and RStudio are two separate pieces of software: | ||||||
| R and RStudio are two separate pieces of software: | ||||||
|
|
||||||
| - **R** is a programming language and software used to run code written in R. | ||||||
| - **RStudio** is an integrated development environment (IDE) that makes using R easier. In this course we use RStudio to interact with R. | ||||||
|
|
||||||
| * **R** is a programming language and software used to run code written in R. | ||||||
| * **RStudio** is an integrated development environment (IDE) that makes using R easier. In this course we use RStudio to interact with R. | ||||||
|
|
||||||
| If you don't already have R and RStudio installed, follow the instructions for your operating system below. | ||||||
| You have to install R before you install RStudio. | ||||||
| You have to install R before you install RStudio. | ||||||
|
|
||||||
| ::::::: spoiler | ||||||
|
|
||||||
| ## For Windows | ||||||
|
|
||||||
| * Download R from the [CRAN website](https://cran.r-project.org/bin/windows/base/release.htm). | ||||||
| * Run the `.exe` file that was just downloaded | ||||||
| * Go to the [RStudio download page](https://www.rstudio.com/products/rstudio/download/#download) | ||||||
| * Under *Installers* select **Windows Vista 10/11 - RSTUDIO-xxxx.yy.z-zzz.exe** (where x = year, y = month, and z represent version numbers) | ||||||
| * Double click the file to install it | ||||||
| * Once it's installed, open RStudio to make sure it works and you don't get any error messages. | ||||||
| - Download R from the [CRAN website](https://cran.r-project.org/bin/windows/base/release.htm). | ||||||
| - Run the `.exe` file that was just downloaded | ||||||
| - Go to the [RStudio download page](https://www.rstudio.com/products/rstudio/download/#download) | ||||||
| - Under *Installers* select **Windows Vista 10/11 - RSTUDIO-xxxx.yy.z-zzz.exe** (where x = year, y = month, and z represent version numbers) | ||||||
| - Double click the file to install it | ||||||
| - Once it's installed, open RStudio to make sure it works and you don't get any error messages. | ||||||
|
|
||||||
| ::::::::::::::::::::::::: | ||||||
|
|
||||||
| :::::::::::::::: spoiler | ||||||
|
|
||||||
| ## For MacOS | ||||||
|
|
||||||
| * Download R from the [CRAN website](https://cran.r-project.org/bin/macosx/). | ||||||
| * Select the `.pkg` file for the latest R version | ||||||
| * Double click on the downloaded file to install R | ||||||
| * It is also a good idea to install [XQuartz](https://www.xquartz.org/) (needed by some packages) | ||||||
| * Go to the [RStudio download page](https://www.rstudio.com/products/rstudio/download/#download) | ||||||
| * Under *Installers* select **Mac OS 13+ - RSTUDIO-xxxx.yy.z-zzz.dmg** (where x = year, y = month, and z represent version numbers) | ||||||
| * Double click the file to install RStudio | ||||||
| * Once it's installed, open RStudio to make sure it works and you don't get any error messages. | ||||||
| - Download R from the [CRAN website](https://cran.r-project.org/bin/macosx/). | ||||||
| - Select the `.pkg` file for the latest R version | ||||||
| - Double click on the downloaded file to install R | ||||||
| - It is also a good idea to install [XQuartz](https://www.xquartz.org/) (needed by some packages) | ||||||
| - Go to the [RStudio download page](https://www.rstudio.com/products/rstudio/download/#download) | ||||||
| - Under *Installers* select **Mac OS 13+ - RSTUDIO-xxxx.yy.z-zzz.dmg** (where x = year, y = month, and z represent version numbers) | ||||||
| - Double click the file to install RStudio | ||||||
| - Once it's installed, open RStudio to make sure it works and you don't get any error messages. | ||||||
|
|
||||||
| :::::::::::::::: | ||||||
|
|
||||||
| ::::::: spoiler | ||||||
|
|
||||||
| ## For Linux | ||||||
|
|
||||||
| * Click on your distribution in the [Linux folder of the CRAN website](https://cran.r-project.org/bin/linux/). Linux Mint users should follow instructions for Ubuntu. | ||||||
| * Go through the instructions for your distribution to install R. | ||||||
| * Go to the [RStudio download page](https://www.rstudio.com/products/rstudio/download/#download) | ||||||
| * Select the relevant installer for your Linux system (Ubuntu/Debian or Fedora) | ||||||
| * Double click the file to install RStudio | ||||||
| * Once it's installed, open RStudio to make sure it works and you don't get any error messages. | ||||||
| - Click on your distribution in the [Linux folder of the CRAN website](https://cran.r-project.org/bin/linux/). Linux Mint users should follow instructions for Ubuntu. | ||||||
| - Go through the instructions for your distribution to install R. | ||||||
| - Go to the [RStudio download page](https://www.rstudio.com/products/rstudio/download/#download) | ||||||
| - Select the relevant installer for your Linux system (Ubuntu/Debian or Fedora) | ||||||
| - Double click the file to install RStudio | ||||||
| - Once it's installed, open RStudio to make sure it works and you don't get any error messages. | ||||||
|
|
||||||
| :::::::::::::::: | ||||||
|
|
||||||
| ### Update R and RStudio | ||||||
|
|
||||||
| If you already have R and RStudio installed, first check if your R version is up to date: | ||||||
|
|
||||||
| * When you open RStudio your R version will be printed in the console on the bottom left. Alternatively, you can type `sessionInfo()` into the console. If your R version is 4.0.0 or later, you don't need to update R for this lesson. If your version of R is older than that, download and install the latest version of R from the R project website [for Windows](https://cran.r-project.org/bin/windows/base/), [for MacOS](https://cran.r-project.org/bin/macosx/), or [for Linux](https://cran.r-project.org/bin/linux/) | ||||||
| * It is not necessary to remove old versions of R from your system, but if you wish to do so you can check [How do I uninstall R?](https://cran.r-project.org/bin/windows/base/rw-FAQ.html#How-do-I-UNinstall-R_003f) | ||||||
| * After installing a new version of R, you will have to reinstall all your packages with the new version. For Windows, there is a package called `installr` that can help you with upgrading your R version and migrate your package library. A similar package called `pacman` can help with updating R packages across | ||||||
| To update RStudio to the latest version, open RStudio and click on | ||||||
| `Help > Check for Updates`. If a new version is available follow the | ||||||
| instruction on screen. By default, RStudio will also automatically notify you | ||||||
| of new versions every once in a while. | ||||||
| - When you open RStudio your R version will be printed in the console on the bottom left. | ||||||
| Alternatively, you can type `sessionInfo()` into the console. | ||||||
| If your R version is 4.0.0 or later, you don't need to update R for this lesson. | ||||||
| If your version of R is older than that, download and install the latest version of R from the R project website [for Windows](https://cran.r-project.org/bin/windows/base/), [for MacOS](https://cran.r-project.org/bin/macosx/), or [for Linux](https://cran.r-project.org/bin/linux/) | ||||||
| - It is not necessary to remove old versions of R from your system, but if you wish to do so you can check [How do I uninstall R?](https://cran.r-project.org/bin/windows/base/rw-FAQ.html#How-do-I-UNinstall-R_003f) | ||||||
| - After installing a new version of R, you will have to reinstall all your packages with the new version. | ||||||
| For Windows, there is a package called `installr` that can help you with upgrading your R version and migrate your package library. | ||||||
| A similar package called `pacman` can help with updating R packages across | ||||||
| To update RStudio to the latest version, open RStudio and click on | ||||||
|
||||||
| To update RStudio to the latest version, open RStudio and click on | |
| To update RStudio to the latest version, open RStudio and click on `Help > Check for Updates`. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `Help > Check for Updates`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfinished sentence?