From a34227fe79b6731984275e7cad842e946ef16243 Mon Sep 17 00:00:00 2001 From: Isaac Jennings <115528556+isaac-jennings@users.noreply.github.com> Date: Wed, 6 Dec 2023 15:37:11 +1000 Subject: [PATCH 1/3] Update 01-rstudio-intro.Rmd Add instructor notes for install of ggplot2 package with explicit dependencies flag. --- episodes/01-rstudio-intro.Rmd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/episodes/01-rstudio-intro.Rmd b/episodes/01-rstudio-intro.Rmd index 61539b391..647049a64 100644 --- a/episodes/01-rstudio-intro.Rmd +++ b/episodes/01-rstudio-intro.Rmd @@ -705,6 +705,16 @@ install.packages(c("ggplot2", "plyr", "gapminder")) :::::::::::::::::::::::::::::::::::::::::::::::::: +::::::::::::::::::::::::::::::::::::: instructor + +When installing ggplot2, it may be required on some users to use the dependencies flag as a result of lazy loading affecting the install. This is an explicit solution to address this bug. Such that: + +```{r ch5-sol, eval=FALSE} +install.packages("ggplot2", dependencies = TRUE) +``` + +::::::::::::::::::::::::::::::::::::::::::::::::: + :::::::::::::::::::::::::::::::::::::::: keypoints - Use RStudio to write and run R programs. From 012b61563742a50f1a76534ecd782f61370b46bf Mon Sep 17 00:00:00 2001 From: Isaac Jennings <115528556+isaac-jennings@users.noreply.github.com> Date: Thu, 4 Apr 2024 10:27:23 +1000 Subject: [PATCH 2/3] Update 01-rstudio-intro.Rmd --- episodes/01-rstudio-intro.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/episodes/01-rstudio-intro.Rmd b/episodes/01-rstudio-intro.Rmd index 647049a64..a58fc7375 100644 --- a/episodes/01-rstudio-intro.Rmd +++ b/episodes/01-rstudio-intro.Rmd @@ -707,9 +707,9 @@ install.packages(c("ggplot2", "plyr", "gapminder")) ::::::::::::::::::::::::::::::::::::: instructor -When installing ggplot2, it may be required on some users to use the dependencies flag as a result of lazy loading affecting the install. This is an explicit solution to address this bug. Such that: +When installing ggplot2, it may be required for some users to use the dependencies flag as a result of lazy loading affecting the install. This is an explicit solution to address this bug. Such that: -```{r ch5-sol, eval=FALSE} +```{r ch5-sol3, eval=FALSE} install.packages("ggplot2", dependencies = TRUE) ``` From bd064437475933bfad95f797e398d8c4fb040988 Mon Sep 17 00:00:00 2001 From: Isaac Jennings <115528556+isaac-jennings@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:09:12 +1000 Subject: [PATCH 3/3] Update 01-rstudio-intro.Rmd Rephrase of proposed change due to bug not linking to any known or findable discussion threads from the broader R/Posit community. --- episodes/01-rstudio-intro.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/episodes/01-rstudio-intro.Rmd b/episodes/01-rstudio-intro.Rmd index a58fc7375..3679905ef 100644 --- a/episodes/01-rstudio-intro.Rmd +++ b/episodes/01-rstudio-intro.Rmd @@ -707,7 +707,7 @@ install.packages(c("ggplot2", "plyr", "gapminder")) ::::::::::::::::::::::::::::::::::::: instructor -When installing ggplot2, it may be required for some users to use the dependencies flag as a result of lazy loading affecting the install. This is an explicit solution to address this bug. Such that: +When installing ggplot2, it may be required for some users to use the dependencies flag as a result of lazy loading affecting the install. This suggestion is not tied to any known bug discussion, and is advised based off instructor feedback/experience in resolving stochastic occurences of errors identified through delivery of this workshop: ```{r ch5-sol3, eval=FALSE} install.packages("ggplot2", dependencies = TRUE)