reinstall_packages: Installs your standard set of packages.

Description Usage Arguments Details Value

Description

This function is part programming exercise and part solution to R upgrades. Only install.packages() pkgs param is supported. For devtools::install_* functions, only the first parameter, usually repo, is supported. If you need something more advanced, there are plenty of similar functions already written.

Usage

1

Arguments

pkgs

a list of packages to install. Packages installed with devtools::install_* functions are specified as a character vector of 2 strings. The first string is the suffix to complete the install funciton name. The second string is the path to the package. If this param is not specified, the set is defaulted to dgutils::default_packages.

Details

Each R release has its own library, /Library/Frameworks/R.framework/Versions/x.x/Resources/library. To avoid redoing the package installs into the new R library, I added this entry to .Renviron:

1
 R_LIBS_USER=~/Library/R/3.x/library/ 

and this function to make managing multiple computers eaiser.

Value

TRUE


dgabbe/dgutil documentation built on May 15, 2019, 7:20 a.m.