get_all_dependencies: Get all external dependencies

Description Usage Arguments Value See Also Examples

View source: R/get_all_dependencies.R

Description

This function gets all the external packages that the project needs. It is used the generate the Dependencies badge (add_dependencies_badge()).

Usage

1

Arguments

pkg

a character of length 1

The name of a CRAN package or NULL (default). If NULL get dependencies of the local (uninstalled) project (package or compendium).

Value

A list of three vectors:

See Also

Other utilities functions: get_all_functions(), get_licenses(), get_minimal_r_version()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
## Update dependencies ----
add_dependencies()

## Get all dependencies ----
deps <- get_all_dependencies()
unlist(lapply(deps, length))

## Can be used for a CRAN package ----
deps <- get_all_dependencies("usethis")
unlist(lapply(deps, length))

## End(Not run)

rcompendium documentation built on March 24, 2021, 5:06 p.m.