pacman (version 0.5.1)

p_exists: Checks if Package is On CRAN/In Local Library

Description

Checks CRAN to determine if a package exists.

Usage

p_exists(package, local = FALSE)

Arguments

package

Name of package.

local

logical. If TRUE checks user's local library for existence; if FALSE CRAN for the package.

Examples

Run this code
# NOT RUN {
p_exists(pacman)
p_exists(pacman, FALSE)
p_exists(I_dont_exist)
# }

Run the code above in your browser using DataLab