dep_pkgs: Get dependent packages for the given packages

Description Usage Arguments Details Value See Also Examples

Description

Get a tibble of packages that the given packages depend on or import. It makes use of utils::available.packages to get the full package meta info list.

Usage

1
2
3
4
5
dep_pkgs(..., dep_type = c("Depends", "Imports", "LinkingTo"),
  repos = getOption("repos"), recursive = FALSE)

dep_pkg(..., dep_type = c("Depends", "Imports", "LinkingTo"),
  repos = getOption("repos"), recursive = FALSE)

Arguments

...

package names for process. Can be in the following forms:

character vector/list

E.g., c("tidyr", "dplyr") or list("tidyr", "dplyr")

characters

E.g., "tidyr", "dplyr"

symbols

E.g., tidyr, dplyr

dep_type

character, type of dependency, accecpts c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"). Default c('Depends', 'Imports', 'LinkingTo'). Character string "all" is shorthand for that vector, character string "most" for the same vector without "Enhances".

repos

repos address, default getOption("repos")

recursive

logical, whether recursive when fetching package dependencies. Default FALSE.

Details

This function requires internet connection.

Value

a tibble of dependent/import packages of the given packages. It has 4 columns:

package

dependent package names

cran

package version on CRAN

local

package version locally

behind

whether local version is behind CRAN

See Also

package_dependencies

Examples

1
2
3
4
5
## Not run: 
dep_pkgs(c("dplyr", "devtools"))  # or
dep_pkgs("dplyr", "devtools")

## End(Not run)

madlogos/aseskit documentation built on June 26, 2019, 12:17 a.m.