Learn R Programming

raw (version 0.1.8)

PackageIsInstalled: PackageIsInstalled

Description

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

Usage

PackageIsInstalled(pkgs)

Arguments

pkgs

Character vector of package names.

Value

A logical vector indicating whether the packages have been installed.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
  PackageIsInstalled("ggplot2")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab