50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

inlmisc (version 0.4.3)

IsPackageInstalled: Check whether Package is Installed

Description

This function checks whether a package(s) is installed under the library tree(s).

Usage

IsPackageInstalled(x, lib = .libPaths())

Arguments

x

'character'. Vector of package names

lib

'character'. Vector of library trees

Value

A 'logical' vector the length of argument x.

Examples

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

# }

Run the code above in your browser using DataLab