Skip to contents

Provided the location of the previous R installation's package library, the function will attempt to re-install each of the packages found. Packages are installed with renv::install() and will be added to the 'renv' package cache.

Packages can be installed from GitHub, GitLab, BioConductor, and any repository listed in getOption("repos"). This would typically be from CRAN and any other secondary repositories that may be set.

Usage

install_pkgs(lib.loc = NULL)

Arguments

lib.loc

character vector describing the location of R library trees to search through

Examples

if (interactive()) {
  install_pkgs()
}