Package
column to available.packages
Will join available.packages()
with pkgDT
, if pkgDT
does not already have
a column named Depends
, which would be an indicator that this had already
happened.
joinToAvailablePackages(pkgDT, repos, type, which, verbose)
The returned data.table
will have most of the columns from
available.packages
appended to the pkgDT
, including Depends
, Imports
,
Suggests
. It will change the column name that is normally
returned from available.packages
as Version
to VersionOnRepos
.
A pkgDT
object e.g., from toPkgDT
is used for ap
.
a character vector listing the types of dependencies, a subset
of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances")
.
Character string "all"
is shorthand for that vector, character string
"most"
for the same vector without "Enhances"
.
Numeric or logical indicating how verbose should the function
be. If -1 or -2, then as little verbosity as possible. If 0 or FALSE,
then minimal outputs; if 1
or TRUE, more outputs; 2
even more. NOTE: in
Require
function, when verbose >= 2
, also returns details as if
returnDetails = TRUE
(for backwards compatibility).