View source: R/att_from_namespace.R
att_from_namespace | R Documentation |
return package dependencies from NAMESPACE file
att_from_namespace(path = "NAMESPACE", document = TRUE, clean = TRUE)
path |
path to NAMESPACE file |
document |
Run function roxygenise of roxygen2 package |
clean |
Logical. Whether to remove the original NAMESPACE before updating |
a vector
tmpdir <- tempfile(pattern = "namespace")
dir.create(tmpdir)
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"))
# Clean temp files after this example
unlink(tmpdir, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.