This function will indicate whether a package needs to be updated. It uses the old.packages function for this.

PackageNeedsUpdating(pkgs)

Arguments

pkgs

Character vector of package names.

Value

A logical vector indicating whether the packages need to be updated.

Examples

if (FALSE) { PackageNeedsUpdating("ggplot2") }