requirePackage {Hmisc}R Documentation

require a packge and error if package is not installed

Description

require a package. If package doesn't exist then throw an error.

Usage

requirePackage(package, character.only = FALSE, ...)

Arguments

package

character vector containing the names of packages to load.

character.only

a logical indicating whether 'package' can be assumed to be character string.

...

arguments to be passed to require.

Author(s)

Charles Dupont

See Also

library, require

Examples

## Not run: 
requirePackage(methods)

## End(Not run)


[Package Hmisc version 3.7-0 Index]