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

Description Usage Arguments Examples

Description

Checks CRAN to determine if a package exists.

Usage

1
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

1
2
3
4
5
6
## Not run: 
p_exists(pacman)
p_exists(pacman, FALSE)
p_exists(I_dont_exist)

## End(Not run)

pacman documentation built on May 2, 2019, 1:08 p.m.