This function will indicate whether a package has been installed. It uses the installed.packages function for this.

PackageIsInstalled(pkgs)

Arguments

pkgs

Character vector of package names.

Value

A logical vector indicating whether the packages have been installed.

Examples

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