Watts-College / cpp-528-fall-2021

https://watts-college.github.io/cpp-528-fall-2021/
2 stars 2 forks source link

cpp-528-spr-2021

How to update course website

Welcome to CPP 528! To update the course website to reflect the current semester, please update two files:

How to obtain necessary R packages

Thanks to the renv package, you can install the necessary R packages by running this line of code:

# restore a project's dependencies from the renv.lock file (located in the root directory)
renv::restore(here::here())

For more context, here's what happens under the hood when renv::restore() is called:

When renv::restore() is called, packages from the lockfile are compared against packages currently installed in the library paths specified by library. Any packages which have changed will then be installed into the default library. If clean = TRUE, then packages that exist within the default library, but aren't recorded in the lockfile, will be removed as well.