att_from_namespace: return package dependencies from NAMESPACE file

View source: R/att_from_namespace.R

att_from_namespaceR Documentation

return package dependencies from NAMESPACE file

Description

return package dependencies from NAMESPACE file

Usage

att_from_namespace(path = "NAMESPACE", document = TRUE, clean = TRUE)

Arguments

path

path to NAMESPACE file

document

Run function roxygenise of roxygen2 package

clean

Logical. Whether to remove the original NAMESPACE before updating

Value

a vector

Examples

tmpdir <- tempdir()
file.copy(system.file("dummypackage",package = "attachment"), tmpdir,
 recursive = TRUE)
dummypackage <- file.path(tmpdir, "dummypackage")
# browseURL(dummypackage)
att_from_namespace(path = file.path(dummypackage, "NAMESPACE"))

attachment documentation built on Sept. 19, 2022, 5:07 p.m.