Learn R Programming

golem (version 0.1)

get_dependencies: Return all package dependencies from current package

Description

Return all package dependencies from current package

Usage

get_dependencies(path = "DESCRIPTION", pkg = get_golem_wd(),
  dput = FALSE, field = c("Imports"))

Arguments

path

path to the DESCRIPTION file

pkg

Path to the root of the package. Default is ".".

dput

if TRUE return a dput output instead of character vector

field

DESCRIPTION fields to parse. Default is Import

Examples

Run this code
# NOT RUN {
if (interactive()){
  get_dependencies()
}
# }

Run the code above in your browser using DataLab