get_dependencies {deepdep} | R Documentation |
Acquire the dependencies of the package
Description
This function uses get_description
and get_downloads
to acquire the dependencies of the package (with their downloads).
Usage
get_dependencies(
package,
downloads = TRUE,
bioc = FALSE,
local = FALSE,
dependency_type = "strong"
)
Arguments
package |
A character . Name of the package that is on CRAN, Bioconductor repository or locally installed.
See bioc and local arguments.
|
downloads |
A logical . If TRUE add package downloads data. By default it's TRUE .
|
bioc |
A logical value. If TRUE the Bioconductor dependencies data will be taken from the
Bioconductor repository. For this option to work properly, BiocManager package needs to be installed.
|
local |
A logical value. If TRUE only data of locally installed packages will be used (without API usage).
|
dependency_type |
A character vector. Types of the dependencies that should be sought, a subset of
c("Imports", "Depends", "LinkingTo", "Suggests", "Enhances") . Other possibilities are: character string
"all" , a shorthand for the whole vector; character string "most" for the same vector without "Enhances" ;
character string "strong" (default) for the first three elements of that vector. Works analogously to
package_dependencies .
|
Value
An object of package_dependencies
class.
See Also
get_description
get_downloads
Examples
library(deepdep)
dependencies <- get_dependencies("htmltools", downloads = FALSE)
dependencies
dependencies_local <- get_dependencies("deepdep", downloads = FALSE, local = TRUE)
dependencies_local
[Package
deepdep version 0.4.3
Index]