getVigDeps {reposTools} | R Documentation |
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.
getObjectDeps(x, suggests=TRUE, uses=TRUE) getVigDeps(x, suggests=TRUE, uses=TRUE) getPkgDeps(x, suggests=TRUE, uses=TRUE)
x |
The name of the object |
suggests |
Whether or not to load 'suggests' level dependencies |
uses |
Whether or not to load 'uses' level dependencies |
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.
A character vector of dependencies, or an empty vector
Jeff Gentry
getPkgDeps("affy")