forked from andrie/miniCRAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpkgDep.Rd
53 lines (40 loc) · 1.76 KB
/
pkgDep.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{pkgDep}
\alias{pkgDep}
\title{Retrieves package dependencies.}
\usage{
pkgDep(pkg, availPkgs, repos = getOption("repos"), type = "source",
depends = TRUE, suggests = TRUE, enhances = FALSE,
includeBasePkgs = FALSE, ...)
}
\arguments{
\item{pkg}{Character vector of packages.}
\item{availPkgs}{Vector of available packages. Defaults to reading this list from CRAN, using \code{\link{available.packages}}}
\item{repos}{URL(s) of the 'contrib' sections of the repositories, e.g. \code{"http://cran.us.r-project.org"}. Passed to \code{\link{available.packages}}}
\item{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 \code{\link{download.packages}}.}
\item{depends}{If TRUE, retrieves Depends, Imports and LinkingTo dependencies (non-recursively)}
\item{suggests}{If TRUE, retrieves Suggests dependencies (non-recursively)}
\item{enhances}{If TRUE, retrieves Enhances dependencies (non-recursively)}
\item{includeBasePkgs}{If TRUE, include base R packages in results}
\item{...}{Other arguments passed to \code{\link{available.packages}}}
}
\description{
Performs recursive retrieve for \code{Depends}, \code{Imports} and \code{LinkLibrary}. Performs non-recursive retrieve for \code{Suggests}.
}
\examples{
\dontrun{
pkgDep(pkg=c("ggplot2", "plyr", "reshape2"),
repos=c(CRAN="http://cran.revolutionanalytics.com")
)
}
pdb <- cranJuly2014
\dontrun{
pdb <- pkgAvail(repos=c(CRAN="http://cran.revolutionanalytics.com"))
}
pkgDep(pkg=c("ggplot2", "plyr", "reshape2"), pdb)
}
\seealso{
Other dependency functions: \code{\link{basePkgs}};
\code{\link{makeDepGraph}};
\code{\link{plot.pkgDepGraph}}
}