getVigDeps {reposTools}R Documentation

A function to extract dependencies

Description

These function will return a vector of dependencies for either a vignette or an installed package (respectively). Each element of the vector will represent a single dependency and may also contain in the string any version requirements.

Usage

getObjectDeps(x, suggests=TRUE, uses=TRUE)
getVigDeps(x, suggests=TRUE, uses=TRUE)
getPkgDeps(x, suggests=TRUE, uses=TRUE)

Arguments

x The name of the object
suggests Whether or not to load 'suggests' level dependencies
uses Whether or not to load 'uses' level dependencies

Details

Obtains the information from the VignetteDepends directive in the vignette header, or the DESCRIPTION file for the package.

getObjectDeps is used if one is not sure if 'x' represents a package or a vignette. It is a simple wrapper for these two functions.

Value

A character vector of dependencies, or an empty vector

Author(s)

Jeff Gentry

See Also

load.depends,depends

Examples

   getPkgDeps("affy")

[Package Contents]