powered by
This function will indicate whether a package has been installed. It uses the installed.packages function for this.
PackageIsInstalled(pkgs)
Character vector of package names.
A logical vector indicating whether the packages have been installed.
# NOT RUN { # } # NOT RUN { PackageIsInstalled("ggplot2") # } # NOT RUN { # }
Run the code above in your browser using DataLab