Learn R Programming

inlmisc (version 0.5.5)

IsPackageInstalled: Check whether Package is Installed

Description

Check whether a package(s) is installed under the library tree(s).

Usage

IsPackageInstalled(x, lib = .libPaths())

Arguments

x

'character' vector. Package names

lib

'character' vector. Library trees

Value

A 'logical' vector of the same length as argument x.

Examples

Run this code
# NOT RUN {
IsPackageInstalled(c("inlmisc", "csimlni", "devtools"))

# }

Run the code above in your browser using DataLab