From 32bb9c7acce47d605ce4dfdad97d528da56f0d68 Mon Sep 17 00:00:00 2001 From: Brian Stucky <99272581+BrianStucky-USDA@users.noreply.github.com> Date: Fri, 4 Oct 2024 14:45:26 -0400 Subject: [PATCH] Update 2024-10-04-package-env-workshop-r.md --- sn_collections/_workshops/2024-10-04-package-env-workshop-r.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sn_collections/_workshops/2024-10-04-package-env-workshop-r.md b/sn_collections/_workshops/2024-10-04-package-env-workshop-r.md index 0a5c60934..e720fc014 100644 --- a/sn_collections/_workshops/2024-10-04-package-env-workshop-r.md +++ b/sn_collections/_workshops/2024-10-04-package-env-workshop-r.md @@ -71,7 +71,7 @@ Next, we will expand our project with additional packages! 1. You can install packages into your environment as you normally would with `install.packages('PACKAGE')`, or `renv` does have an expanded installation function `renv::install('PACKAGE')` that supports additional remote package sources, e.g., GitHub. If you are interested in learning more about `renv::install()`, please see the documentation [here](https://rstudio.github.io/renv/reference/install.html). 1. To have `renv` save the state of the project (i.e., capture all the metadata of the used packages) in the environment configuration file called a 'lockfile', run `renv::snapshot()`. 1. If you want to assess the state of the environment, (i.e., which packages are installed but not used, or which packages are used but not recorded), run `renv::status()`. -1. Let's save the script below in our project and install an old version of the `cli` package so we can simulate needing to update to the latest version next: `install.packages("https://cran.r-project.org/src/contrib/Archive/cli/cli_3.6.1.tar.gz", repos=NULL,type="sourceā€)`. +1. Let's save the script below in our project and install an old version of the `cli` package so we can simulate needing to update to the latest version next: `install.packages("https://cran.r-project.org/src/contrib/Archive/cli/cli_3.6.1.tar.gz", repos=NULL,type="source")`. 1. If we call `renv::status()`, it will tell us we are out of sync. If we then call `renv::snapshot()`, it will update the project. {:.copy-code}