att_from_description: Return all package dependencies from current package

Description Usage Arguments Value Examples

View source: R/att_from_description.R

Description

Return all package dependencies from current package

Usage

1
2
3
4
5
att_from_description(
  path = "DESCRIPTION",
  dput = FALSE,
  field = c("Depends", "Imports", "Suggests")
)

Arguments

path

path to the DESCRIPTION file

dput

if FALSE return a vector instead of dput output

field

DESCRIPTION field to parse, Import, Suggests and Depends by default

Value

A character vector with packages names

Examples

1
2
3
dummypackage <- system.file("dummypackage", package = "attachment")
# browseURL(dummypackage)
att_from_description(path = file.path(dummypackage, "DESCRIPTION"))

attachment documentation built on Nov. 16, 2021, 9:17 a.m.