| find_downstream | R Documentation |
Scans DESCRIPTION files in project directories under scan_dir
for Depends, Imports, or LinkingTo fields that reference package.
find_downstream(package, scan_dir = path.expand("~"),
exclude = default_exclude())
package |
Character. Package name to search for. |
scan_dir |
Directory to scan for project directories. |
exclude |
Character vector of directory basenames to skip. |
Character vector of project names that depend on package.
d <- file.path(tempdir(), "dsdir")
dir.create(d, showWarnings = FALSE)
pkg <- file.path(d, "child")
dir.create(pkg, showWarnings = FALSE)
writeLines(c("Package: child", "Version: 0.1.0", "Imports: parent"),
file.path(pkg, "DESCRIPTION"))
find_downstream("parent", scan_dir = d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.