From bed2d1fa5c9ee368c46b63ba1a7ee5a940aceadf Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Fri, 22 Dec 2023 18:56:12 +0000 Subject: [PATCH 01/13] add software setup template follows the Rewrite-R-ecology-lesson as template https://www.michaelc-m.com/Rewrite-R-ecology-lesson/#install-r-and-rstudio --- learners/setup.md | 136 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 127 insertions(+), 9 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index db1654e4..b4105304 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -2,20 +2,138 @@ title: Setup --- - +R and RStudio are two separate pieces of software: -## Software Setup +* **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. + +
+ +:::::::::::::::: solution + +## 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://posit.co/download/rstudio-desktop/) +* Under *Installers* select **RStudio x.yy.zzz - Windows Vista/7/8/10** (where x, y, 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. + +::::::::::::::::::::::::: + +:::::::::::::::: solution + +## 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://posit.co/download/rstudio-desktop/) +* Under *Installers* select **RStudio x.yy.zzz - Mac OS X 10.6+ (64-bit)** (where x, y, 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. + +::::::::::::::::::::::::: + +:::::::::::::::: solution + +## For Linux + +* 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://posit.co/download/rstudio-desktop/) +* Under *Installers* select **RStudio x.yy.zzz - Mac OS X 10.6+ (64-bit)** (where x, y, 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. + +::::::::::::::::::::::::: + +### 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. + +::::::::::::::::::::::::::::: callout + +The changes introduced by new R versions are usually backwards-compatible. That is, your old code should still work after updating your R version. However, if breaking changes happen, it is useful to know that you can have multiple versions of R installed in parallel and that you can switch between them in RStudio by going to `Tools > Global Options > General > Basic`. + +While this may sound scary, it is **far more common** to run into issues due to using out-of-date versions of R or R packages. Keeping up with the latest versions of R, RStudio, and any packages you regularly use is a good practice. + +::::::::::::::::::::::::::::: + +### Install required R packages + +During the course we will need a number of R packages. Packages contain useful R code written by other people. We will use packages from the [Epiverse-TRACE](https://epiverse-trace.github.io/). + +To try to install these packages, open RStudio and copy and paste the following code chunk into the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html) (look for a blinking cursor on the bottom left), then press the Enter (Windows and Linux) or Return (MacOS) to execute the command. + +```{r} +if(!require("pak")) install.packages("pak") + +new_packages <- c( + "EpiNow2", + "epiverse-trace/epiparameter", + "socialmixr", + "epiverse-trace/epidemics", + "tidyverse" +) + +pak::pak(new_packages) +``` + +Alternatively, you can install the packages using RStudio's graphical user interface by going to `Tools > Install Packages` and typing the names of the packages separated by a comma. + +R tries to download and install the packages on your machine. + +When the installation has finished, you can try to load the packages by pasting the following code into the console: + +```{r} +library(EpiNow2) +library(epiparameter) +library(socialmixr) +library(epidemics) +library(tidyverse) +``` + +If you do NOT see an error like `there is no package called ‘...’` you are good to go! + +### Updating R packages + +Generally, it is recommended to keep your R version and all packages up to date, because new versions bring improvements and important bugfixes. To update the packages that you have installed, click `Update` in the `Packages` tab in the bottom right panel of RStudio, or go to `Tools > Check for Package Updates...` + +You should update **all of the packages** required for the lesson, even if you installed them relatively recently. + +Sometimes, package updates introduce changes that break your old code, which can be very frustrating. To avoid this problem, you can use a package called `renv`. It locks the package versions you have used for a given [Rstudio project](https://docs.posit.co/ide/user/ide/guide/code/projects.html) and makes it straightforward to reinstall those exact package version in a new environment, for example after updating your R version or on another computer. However, the details are outside of the scope of this lesson. + +## Data sets + +### Download the data + +We will download the data directly from R during the lessons. However, if you are expecting problems with the network, it may be better to download the data beforehand and store it on your machine. -Install R and Rstudio +The data files for the lesson can be downloaded manually here: +- From efe887222a974e73cc86c760f98c091e071a4e1f Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Fri, 22 Dec 2023 19:39:16 +0000 Subject: [PATCH 02/13] fix chunk delimitation for md files --- learners/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index b4105304..0f55995c 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -90,7 +90,7 @@ During the course we will need a number of R packages. Packages contain useful R To try to install these packages, open RStudio and copy and paste the following code chunk into the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html) (look for a blinking cursor on the bottom left), then press the Enter (Windows and Linux) or Return (MacOS) to execute the command. -```{r} +```r if(!require("pak")) install.packages("pak") new_packages <- c( @@ -110,7 +110,7 @@ R tries to download and install the packages on your machine. When the installation has finished, you can try to load the packages by pasting the following code into the console: -```{r} +```r library(EpiNow2) library(epiparameter) library(socialmixr) From 0b7bc4212fdb05bc14d7e8872b824edf441549f8 Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Fri, 22 Dec 2023 19:39:31 +0000 Subject: [PATCH 03/13] add your questions section to maintaner --- learners/setup.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/learners/setup.md b/learners/setup.md index 0f55995c..f7e8e89e 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -137,3 +137,7 @@ We will download the data directly from R during the lessons. However, if you ar The data files for the lesson can be downloaded manually here: - + +## Your Questions + +If you need any assistance installing the software or have any other questions about the workshop, please send an email to From bba10fab98645c185fba64acc3598849620f2772 Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Fri, 19 Jan 2024 20:32:27 +0000 Subject: [PATCH 04/13] remove too explicit details on package installation --- learners/setup.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index f7e8e89e..b10616df 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -104,10 +104,6 @@ new_packages <- c( pak::pak(new_packages) ``` -Alternatively, you can install the packages using RStudio's graphical user interface by going to `Tools > Install Packages` and typing the names of the packages separated by a comma. - -R tries to download and install the packages on your machine. - When the installation has finished, you can try to load the packages by pasting the following code into the console: ```r @@ -118,7 +114,7 @@ library(epidemics) library(tidyverse) ``` -If you do NOT see an error like `there is no package called ‘...’` you are good to go! +If you do NOT see an error like `there is no package called ‘...’` you are good to go! If you do, [contact us](#your-questions)! ### Updating R packages From 6eab1800a05776171d1b4f5784ede039c3448a83 Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Fri, 19 Jan 2024 20:34:45 +0000 Subject: [PATCH 05/13] remove text with installation and update details --- learners/setup.md | 58 ++++++++--------------------------------------- 1 file changed, 10 insertions(+), 48 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index b10616df..a1c50be5 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -16,61 +16,25 @@ 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. - -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. -
+If you don't already have `R` and `RStudio` installed, follow the instructions for your operating system at . -:::::::::::::::: solution +:::::::::::::::::::::::::::::: instructor -## For Windows +* For Mac: It is also a good idea to install [XQuartz](https://www.xquartz.org/) (needed by some packages) -* 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://posit.co/download/rstudio-desktop/) -* Under *Installers* select **RStudio x.yy.zzz - Windows Vista/7/8/10** (where x, y, 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. - -::::::::::::::::::::::::: +::::::::::::::::::::::::::::::::::::::::: -:::::::::::::::: solution - -## 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://posit.co/download/rstudio-desktop/) -* Under *Installers* select **RStudio x.yy.zzz - Mac OS X 10.6+ (64-bit)** (where x, y, 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. - -::::::::::::::::::::::::: - -:::::::::::::::: solution - -## For Linux +### Update R and RStudio -* 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://posit.co/download/rstudio-desktop/) -* Under *Installers* select **RStudio x.yy.zzz - Mac OS X 10.6+ (64-bit)** (where x, y, 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. +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 [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html). Alternatively, you can type `sessionInfo()` into the console. -### Update R and RStudio +* 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](https://cran.rstudio.com/) for your operating system. -If you already have R and RStudio installed, first check if your R version is up to date: +* 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. -* 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 @@ -78,8 +42,6 @@ of new versions every once in a while. ::::::::::::::::::::::::::::: callout -The changes introduced by new R versions are usually backwards-compatible. That is, your old code should still work after updating your R version. However, if breaking changes happen, it is useful to know that you can have multiple versions of R installed in parallel and that you can switch between them in RStudio by going to `Tools > Global Options > General > Basic`. - While this may sound scary, it is **far more common** to run into issues due to using out-of-date versions of R or R packages. Keeping up with the latest versions of R, RStudio, and any packages you regularly use is a good practice. ::::::::::::::::::::::::::::: @@ -88,7 +50,7 @@ While this may sound scary, it is **far more common** to run into issues due to During the course we will need a number of R packages. Packages contain useful R code written by other people. We will use packages from the [Epiverse-TRACE](https://epiverse-trace.github.io/). -To try to install these packages, open RStudio and copy and paste the following code chunk into the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html) (look for a blinking cursor on the bottom left), then press the Enter (Windows and Linux) or Return (MacOS) to execute the command. +To try to install these packages, open RStudio and copy and paste the following code chunk into the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html), then press the Enter (Windows and Linux) or Return (MacOS) to execute the command. ```r if(!require("pak")) install.packages("pak") From aa4af275116b8a66b0934732bd416e28509d384c Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Fri, 19 Jan 2024 20:42:15 +0000 Subject: [PATCH 06/13] relocate the update R pkg section to installation --- learners/setup.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index a1c50be5..231831a7 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -66,6 +66,8 @@ new_packages <- c( pak::pak(new_packages) ``` +You should update **all of the packages** required for the lesson, even if you installed them relatively recently. New versions bring improvements and important bugfixes. + When the installation has finished, you can try to load the packages by pasting the following code into the console: ```r @@ -78,14 +80,6 @@ library(tidyverse) If you do NOT see an error like `there is no package called ‘...’` you are good to go! If you do, [contact us](#your-questions)! -### Updating R packages - -Generally, it is recommended to keep your R version and all packages up to date, because new versions bring improvements and important bugfixes. To update the packages that you have installed, click `Update` in the `Packages` tab in the bottom right panel of RStudio, or go to `Tools > Check for Package Updates...` - -You should update **all of the packages** required for the lesson, even if you installed them relatively recently. - -Sometimes, package updates introduce changes that break your old code, which can be very frustrating. To avoid this problem, you can use a package called `renv`. It locks the package versions you have used for a given [Rstudio project](https://docs.posit.co/ide/user/ide/guide/code/projects.html) and makes it straightforward to reinstall those exact package version in a new environment, for example after updating your R version or on another computer. However, the details are outside of the scope of this lesson. - ## Data sets ### Download the data From fd45bc63b1701c5d595a1f44a5b65f8668dc4712 Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Fri, 19 Jan 2024 20:42:58 +0000 Subject: [PATCH 07/13] replace reference to workshop --- learners/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learners/setup.md b/learners/setup.md index 231831a7..169f6a14 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -92,4 +92,4 @@ The data files for the lesson can be downloaded manually here: ## Your Questions -If you need any assistance installing the software or have any other questions about the workshop, please send an email to +If you need any assistance installing the software or have any other questions about this tutorial, please send an email to From 00dcdc8e85baa3ebde62de6c5b698121da3dcc0d Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Mon, 22 Jan 2024 13:07:08 +0000 Subject: [PATCH 08/13] replace lesson words with tutorial to give a homogeneous terminology to this material --- learners/setup.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index 169f6a14..eed8ee50 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -31,7 +31,7 @@ If you already have R and RStudio installed, first check if your R version is up * When you open RStudio your R version will be printed in the console on the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html). 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](https://cran.rstudio.com/) for your operating system. +* If your R version is 4.0.0 or later, you don't need to update R for this tutorial. If your version of R is older than that, download and install the latest version of R from the [R project website](https://cran.rstudio.com/) for your operating system. * 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. @@ -66,7 +66,7 @@ new_packages <- c( pak::pak(new_packages) ``` -You should update **all of the packages** required for the lesson, even if you installed them relatively recently. New versions bring improvements and important bugfixes. +You should update **all of the packages** required for the tutorial, even if you installed them relatively recently. New versions bring improvements and important bugfixes. When the installation has finished, you can try to load the packages by pasting the following code into the console: @@ -84,9 +84,9 @@ If you do NOT see an error like `there is no package called ‘...’` you are g ### Download the data -We will download the data directly from R during the lessons. However, if you are expecting problems with the network, it may be better to download the data beforehand and store it on your machine. +We will download the data directly from R during the tutorial. However, if you are expecting problems with the network, it may be better to download the data beforehand and store it on your machine. -The data files for the lesson can be downloaded manually here: +The data files for the tutorial can be downloaded manually here: - From 06e62cb6f994168575b03f30c79adbe44b59cae3 Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Mon, 22 Jan 2024 13:10:04 +0000 Subject: [PATCH 09/13] replace course with tutorial for a homogeneous terminology about this material --- learners/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index eed8ee50..1b254ac2 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -15,7 +15,7 @@ Setup instructions live in this document. Please specify the tools and the data 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. +* **RStudio** is an integrated development environment (IDE) that makes using R easier. In this tutorial, we use RStudio to interact with R. If you don't already have `R` and `RStudio` installed, follow the instructions for your operating system at . @@ -48,7 +48,7 @@ While this may sound scary, it is **far more common** to run into issues due to ### Install required R packages -During the course we will need a number of R packages. Packages contain useful R code written by other people. We will use packages from the [Epiverse-TRACE](https://epiverse-trace.github.io/). +During the tutorial, we will need a number of R packages. Packages contain useful R code written by other people. We will use packages from the [Epiverse-TRACE](https://epiverse-trace.github.io/). To try to install these packages, open RStudio and copy and paste the following code chunk into the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html), then press the Enter (Windows and Linux) or Return (MacOS) to execute the command. From ca81e65ea2c66375ba312c52ebed7aa754dd2d9a Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Mon, 22 Jan 2024 17:41:25 +0000 Subject: [PATCH 10/13] remove xquartz suggestion --- learners/setup.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index 1b254ac2..f4e6f47e 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -19,12 +19,6 @@ R and RStudio are two separate pieces of software: If you don't already have `R` and `RStudio` installed, follow the instructions for your operating system at . -:::::::::::::::::::::::::::::: instructor - -* For Mac: It is also a good idea to install [XQuartz](https://www.xquartz.org/) (needed by some packages) - -::::::::::::::::::::::::::::::::::::::::: - ### Update R and RStudio If you already have R and RStudio installed, first check if your R version is up to date: From cbfceb5a4cabcd7a11e850615f2a1a90931cac7c Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Mon, 22 Jan 2024 19:00:29 +0000 Subject: [PATCH 11/13] add first the version and then provide the links --- learners/setup.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/learners/setup.md b/learners/setup.md index f4e6f47e..e43d3c13 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -21,11 +21,13 @@ If you don't already have `R` and `RStudio` installed, follow the instructions f ### Update R and RStudio +This tutorial requires R version 4.0.0 or later. + 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 [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html). 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 tutorial. If your version of R is older than that, download and install the latest version of R from the [R project website](https://cran.rstudio.com/) for your operating system. +* If your version of R is older than that, download and install the latest version of R from the [R project website](https://cran.rstudio.com/) for your operating system. * 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. From 018c765fd58f6fdb495440de8e2565c50d829237 Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Mon, 22 Jan 2024 19:05:15 +0000 Subject: [PATCH 12/13] fix wording related to version --- learners/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learners/setup.md b/learners/setup.md index e43d3c13..b038cf3f 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -27,7 +27,7 @@ If you already have R and RStudio installed, first check if your R version is up * When you open RStudio your R version will be printed in the console on the [console window](https://docs.posit.co/ide/user/ide/guide/code/console.html). Alternatively, you can type `sessionInfo()` into the console. -* If your version of R is older than that, download and install the latest version of R from the [R project website](https://cran.rstudio.com/) for your operating system. +* If your version of R is older than the one required, download and install the latest version of R from the [R project website](https://cran.rstudio.com/) for your operating system. * 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. From 33c99bbca0d4743dbd12241d272a1d06d14c95fd Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Mon, 22 Jan 2024 19:06:41 +0000 Subject: [PATCH 13/13] use grammarly to fix typos --- learners/setup.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/learners/setup.md b/learners/setup.md index b038cf3f..47742e35 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -29,11 +29,11 @@ If you already have R and RStudio installed, first check if your R version is up * If your version of R is older than the one required, download and install the latest version of R from the [R project website](https://cran.rstudio.com/) for your operating system. -* 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. +* 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 migrating your package library. * 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 +instructions on the screen. By default, RStudio will also automatically notify you of new versions every once in a while. ::::::::::::::::::::::::::::: callout @@ -62,7 +62,7 @@ new_packages <- c( pak::pak(new_packages) ``` -You should update **all of the packages** required for the tutorial, even if you installed them relatively recently. New versions bring improvements and important bugfixes. +You should update **all of the packages** required for the tutorial, even if you installed them relatively recently. New versions bring improvements and important bug fixes. When the installation has finished, you can try to load the packages by pasting the following code into the console: