Learn R Programming

GRANBase (version 2.6.20)

identifyRisk: identifyRisk

Description

Identify packages which could possibly be effected by updating the specified list of packages to their latest versions.

Usage

identifyRisk(repo, to_update = old.packages(repos = repo_urls),
  liblocs = .libPaths(), important_pkgs = installed.packages(lib.loc =
  liblocs)[, "Package"], repo_urls = getOption("repos"))

Arguments

repo

The name of a GRAN repository to use. Assumes that a a package named GRAN<repo> is available to load.

to_update

vector of package names which may be updated, or a matrix output from old.packages. Defaults to all packages which are out of date

liblocs

the library locations to look for installed packages

important_pkgs

list of packages to check for risk of change cascades from updating the packages in to_update. Defaults to all installed packages

repo_urls

The repositories to check for new versions of packages

Value

A list containing two named lists: splash_damage and in_danger. splash_damage lists the packages potentially affected by updating each package in to_update. in_danger lists the packages from to_update that affect each package in important_pkgs (packages which are unaffected are omitted).