| projects | R Documentation |
Discover R package projects and their dependency relationships. Discover R package projects
Scans a directory for subdirectories containing a DESCRIPTION file and returns their metadata.
projects(scan_dir = path.expand("~"), exclude = default_exclude())
scan_dir |
Directory to scan for project directories. |
exclude |
Character vector of directory basenames to skip. |
A data.frame with columns: package, title, version, path, depends, imports.
d <- file.path(tempdir(), "scandir")
dir.create(d, showWarnings = FALSE)
pkg <- file.path(d, "mypkg")
dir.create(pkg, showWarnings = FALSE)
writeLines(c("Package: mypkg", "Title: Demo", "Version: 0.1.0"),
file.path(pkg, "DESCRIPTION"))
projects(scan_dir = d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.