projects

Project discovery

Description

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.

Usage

1projects(scan_dir = path.expand("~"), exclude = default_exclude())

Arguments

  • scan_dir: Directory to scan for project directories.
  • exclude: Character vector of directory basenames to skip.

Value

A data.frame with columns: package, title, version, path, depends, imports.

Examples

1d <- file.path(tempdir(), "scandir")
2dir.create(d, showWarnings = FALSE)
3pkg <- file.path(d, "mypkg")
4dir.create(pkg, showWarnings = FALSE)
5writeLines(c("Package: mypkg", "Title: Demo", "Version: 0.1.0"),
6           file.path(pkg, "DESCRIPTION"))
7projects(scan_dir = d)