return package dependencies from NAMESPACE file
Source:R/att_from_namespace.R
att_from_namespace.Rd
return package dependencies from NAMESPACE file
Arguments
- path
path to NAMESPACE file
- document
Run function roxygenise of roxygen2 package
- clean
Logical. Whether to remove the original NAMESPACE before updating
Examples
tmpdir <- tempfile(pattern = "namespace")
dir.create(tmpdir)
file.copy(system.file("dummypackage",package = "attachment"), tmpdir,
recursive = TRUE)
#> [1] TRUE
dummypackage <- file.path(tmpdir, "dummypackage")
# browseURL(dummypackage)
att_from_namespace(path = file.path(dummypackage, "NAMESPACE"))
#> Updating dummypackage documentation
#> ────────────────────────────────────────────────────────────────────────────────
#> Changes in roxygen2 7.0.0:
#> * `%` is now escaped automatically in Markdown mode.
#> Please carefully check .Rd files for changes
#> ────────────────────────────────────────────────────────────────────────────────
#> Setting `RoxygenNote` to "7.3.2"
#> Writing NAMESPACE
#> ℹ Loading dummypackage
#> Writing NAMESPACE
#> ℹ Loading dummypackage
#> [1] "magrittr"
# Clean temp files after this example
unlink(tmpdir, recursive = TRUE)