p_exists {pacman}R Documentation

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

## Not run: 
p_exists(pacman)
p_exists(pacman, FALSE)
p_exists(I_dont_exist)

## End(Not run)

[Package pacman version 0.5.1 Index]