pkgDep | R Documentation |
Performs recursive retrieve for Depends
, Imports
and LinkLibrary
.
Performs non-recursive retrieve for Suggests
.
pkgDep( pkg, availPkgs, repos = getOption("repos"), type = "source", depends = TRUE, suggests = TRUE, enhances = FALSE, includeBasePkgs = FALSE, Rversion = R.version, quiet = FALSE, ... )
pkg |
Character vector of packages. |
availPkgs |
Data frame with an element called |
repos |
URL(s) of the 'contrib' sections of the repositories, e.g.
|
type |
Possible values are (currently) "source", "mac.binary" and
"win.binary": the binary types can be listed and downloaded but not
installed on other platforms. Passed to |
depends |
If TRUE, retrieves |
suggests |
If TRUE, retrieves Suggests dependencies (non-recursively) |
enhances |
If TRUE, retrieves Enhances dependencies (non-recursively) |
includeBasePkgs |
If TRUE, include base R packages in results |
Rversion |
Version of R (only used if
|
quiet |
If TRUE, suppresses warnings |
... |
Other arguments passed to |
character vector of package names
Other dependency functions:
basePkgs()
,
makeDepGraph()
,
plot.pkgDepGraph()
if (interactive()) { pkgDep(pkg = c("ggplot2", "plyr", "reshape2"), repos = c(CRAN = "https://cloud.r-project.org") ) pdb <- cranJuly2014 pdb <- pkgAvail(repos = c(CRAN = getOption("minicran.mran"))) pkgDep(pkg = c("ggplot2", "plyr", "reshape2"), pdb) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.