Learn R Programming

tryCatchLog (version 1.3.1)

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

Description

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

Usage

is.package.available(package.name)

Arguments

package.name

Name of the package (as string)

Value

TRUE if the packages is installed, otherwise FALSE

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

Details

This is a package-internal function!

See section <U+2018>Good practice<U+2019> in '?.onAttach'.

Examples

Run this code
# NOT RUN {
tryCatchLog:::is.package.available("tryCatchLog")  # must be TRUE :-)

# }

Run the code above in your browser using DataLab