From 19a06fa838e2ee19faf17a642e26c6b7c8b34088 Mon Sep 17 00:00:00 2001 From: carriewright11 Date: Sun, 7 Jan 2024 21:42:46 -0500 Subject: [PATCH 1/2] adding note about step order --- modules/RStudio/lab/RStudio_Lab.Rmd | 2 +- modules/RStudio/lab/RStudio_Lab_Key.Rmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/RStudio/lab/RStudio_Lab.Rmd b/modules/RStudio/lab/RStudio_Lab.Rmd index 149ed80aa..81808e89f 100644 --- a/modules/RStudio/lab/RStudio_Lab.Rmd +++ b/modules/RStudio/lab/RStudio_Lab.Rmd @@ -13,7 +13,7 @@ This is an R Markdown document. Markdown is a simple formatting syntax for autho The way you can create a file like this in RStudio is: File → New File → R Markdown and then using the default or using a template. -Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. +Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. **You need to run these steps in the order listed.** 1) First copy and paste the following code into the console (the lower left panel/pane):
`install.packages("remotes")`
diff --git a/modules/RStudio/lab/RStudio_Lab_Key.Rmd b/modules/RStudio/lab/RStudio_Lab_Key.Rmd index 626e7a335..5cd6471a3 100644 --- a/modules/RStudio/lab/RStudio_Lab_Key.Rmd +++ b/modules/RStudio/lab/RStudio_Lab_Key.Rmd @@ -13,7 +13,7 @@ This is an R Markdown document. Markdown is a simple formatting syntax for autho The way you can create a file like this in RStudio is: File → New File → R Markdown and then using the default or using a template. -Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. +Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. **You need to run these steps in the order listed.** 1) First copy and paste the following code into the console (the lower left panel/pane):
`install.packages("remotes")`
From b78f8d3724ab4fba28b8d5b9df02354729e44ab9 Mon Sep 17 00:00:00 2001 From: carriewright11 Date: Sun, 7 Jan 2024 21:45:24 -0500 Subject: [PATCH 2/2] add comment about backticks --- modules/RStudio/lab/RStudio_Lab.Rmd | 6 +++--- modules/RStudio/lab/RStudio_Lab_Key.Rmd | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/RStudio/lab/RStudio_Lab.Rmd b/modules/RStudio/lab/RStudio_Lab.Rmd index 81808e89f..c917f66e3 100644 --- a/modules/RStudio/lab/RStudio_Lab.Rmd +++ b/modules/RStudio/lab/RStudio_Lab.Rmd @@ -15,17 +15,17 @@ The way you can create a file like this in RStudio is: File → New File → R M Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. **You need to run these steps in the order listed.** -1) First copy and paste the following code into the console (the lower left panel/pane):
+1) First copy and paste the following code into the console (the lower left panel/pane) - **but do not copy the backticks**:
`install.packages("remotes")`
This code will install a package from CRAN called "remotes".
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console. -2) Next copy and paste the following code again into the console (the lower left panel/pane):
+2) Next copy and paste the following code again into the console (the lower left panel/pane), **again do not copy the backticks**:
`library(remotes)`
This code loads the remotes package into memory- in other words we can use the functions within the package.
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console. -3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console.
+3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console. We still don't want to copy the backticks.
`install_github("jhudsl/jhur")`
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console. diff --git a/modules/RStudio/lab/RStudio_Lab_Key.Rmd b/modules/RStudio/lab/RStudio_Lab_Key.Rmd index 5cd6471a3..14bd02be4 100644 --- a/modules/RStudio/lab/RStudio_Lab_Key.Rmd +++ b/modules/RStudio/lab/RStudio_Lab_Key.Rmd @@ -15,17 +15,17 @@ The way you can create a file like this in RStudio is: File → New File → R M Now we will install some packages! Note it may take ~5-10 minutes to run all these steps. **You need to run these steps in the order listed.** -1) First copy and paste the following code into the console (the lower left panel/pane):
+1) First copy and paste the following code into the console (the lower left panel/pane) - **but do not copy the backticks**:
`install.packages("remotes")`
This code will install a package from CRAN called "remotes".
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console. -2) Next copy and paste the following code again into the console (the lower left panel/pane):
+2) Next copy and paste the following code again into the console (the lower left panel/pane), **again do not copy the backticks**:
`library(remotes)`
This code loads the remotes package into memory- in other words we can use the functions within the package.
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console. -3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console.
+3) Now install a package that the instructors made that is not on CRAN but on GitHub, by copy and pasting the code into the console. We still don't want to copy the backticks.
`install_github("jhudsl/jhur")`
You may be asked a question in the console when you do this. If so, answer by typing Yes into the console.