Identifies the R package dependencies of a package and the version numbers of the corresponding packages, that are currently loaded or installed.
identify_dependencies(pkg = pkg, dependencies = c("Depends", "Imports",
"LinkingTo"), base = FALSE, recommended = FALSE, verbose = TRUE)Path to a package, or within a package.
character vector of dependency types to include.
Choices are "Depends", "Imports", "LinkingTo", "Suggests",
and "Enhances". Defaults to c("Depends", "Imports",
"LinkingTo").
Logical indicating whether to include dependencies on base packages that are included in the R installation. Defaults to FALSE.
Logical indicating whether to include dependencies on recommended packages that are included in the R installation. Defaults to FALSE.
logical should messages be printed or not?
list with dependencies ordered recursively and a data.frame
with all R package dependencies with version numbers of the corresponding (1)
loaded or (2) installed packages.