Skip to content

Commit

Permalink
Merge pull request #713 from USDA-SCINet/BrianStucky-USDA-patch-2
Browse files Browse the repository at this point in the history
Update 2024-10-04-package-env-workshop-r.md
  • Loading branch information
BrianStucky-USDA authored Oct 4, 2024
2 parents 1091ca2 + b15abd9 commit 680b5ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ for(i in c(1:N,N:1)){
> **Exercise 3:** Update the version of `cli` with: `install.packages('cli')`. Modify the environment to be consistent.
1. Another `renv` function to make your project environment consistent is `renv::restore()`. It helps update your project library to match your lockfile.
1. For example, if we install the `MASS` library because we think we may need it but later don't, `renv::restore(clean-TRUE)` will help remove the unused package from the project library.
1. For example, if we install the `MASS` library because we think we may need it but later don't, `renv::restore(clean=TRUE)` will help remove the unused package from the project library.
1. `renv::restore()` can also be used to revert package version discrepancies like for `cli` above.
## Reproduce renv projects
Expand Down

0 comments on commit 680b5ff

Please sign in to comment.