is.package.available: Checks if a package is installed and can be loaded

Description Usage Arguments Details Value Examples

View source: R/is_package_available.R

Description

Use this function to check for optional package dependencies within this package.

Usage

1
is.package.available(package.name)

Arguments

package.name

Name of the package (as string)

Details

This is a package-internal function!

See section ‘Good practice’ in '?.onAttach'.

Value

TRUE if the packages is installed, otherwise FALSE

http://r-pkgs.had.co.nz/description.html

Examples

1
tryCatchLog:::is.package.available("tryCatchLog")  # must be TRUE :-)

tryCatchLog documentation built on Oct. 25, 2021, 9:08 a.m.