check_pkg_installed {cards}R Documentation

Check Package Installation

Description

Usage

check_pkg_installed(pkg, reference_pkg = "cards", call = parent.frame())

is_pkg_installed(pkg, reference_pkg = "cards", call = parent.frame())

get_pkg_dependencies(reference_pkg = "cards", lib.loc = NULL)

get_min_version_required(pkg, reference_pkg = "cards", lib.loc = NULL)

Arguments

pkg

(string)
name of required package

reference_pkg

(string)
name of the package the function will search for a minimum required version from.

call

(environment)
frame for error messaging. Default is parent.frame().

lib.loc

(path)
location of R library trees to search through, see utils::packageDescription().

Value

check_pkg_installed() returns a logical or error, get_min_version_required() returns NULL or a string with the minimum version required, get_pkg_dependencies() returns a tibble.

Examples

check_pkg_installed("dplyr")

is_pkg_installed("dplyr")

get_pkg_dependencies()

get_min_version_required("dplyr")

[Package cards version 0.1.0 Index]