Checks if Package is On CRAN/In Local Library

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.

Checks if Package is On CRAN/In Local Library

Checks if Package is On CRAN/In Local Library

Description

Checks CRAN to determine if a package exists.

Examples

## <strong>Not run</strong>: # p_exists(pacman) # p_exists(pacman, FALSE) # p_exists(I_dont_exist) # ## <strong>End(Not run)</strong>