Return all package dependencies from current package
Source:R/att_from_description.R
att_from_description.Rd
Return all package dependencies from current package
Usage
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
Examples
dummypackage <- system.file("dummypackage", package = "attachment")
# browseURL(dummypackage)
att_from_description(path = file.path(dummypackage, "DESCRIPTION"))
#> [1] "knitr" "magrittr" "rmarkdown" "testthat" "utils"