check_pkg_installed {cards} | R Documentation |
Check Package Installation
Description
-
check_pkg_installed()
: checks whether a package is installed and returns an error orFALSE
if not available. If a package search is provided, the function will check whether a minimum version of a package is required. -
get_pkg_dependencies()
returns a tibble with all dependencies of a specific package. -
get_min_version_required()
will return, if any, the minimum version ofpkg
required byreference_pkg
,NULL
if no minimum version required.
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 |
( |
reference_pkg |
( |
call |
( |
lib.loc |
( |
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")