PackageIsInstalled.RdThis function will indicate whether a package has been installed. It uses the installed.packages function for this.
PackageIsInstalled(pkgs)
| pkgs | Character vector of package names. |
|---|
A logical vector indicating whether the packages have been installed.
if (FALSE) { PackageIsInstalled("ggplot2") }