Skip to contents

Returns a named character vector of source directory paths that should be tracked for a given build target (x).

  • If x is "root", returns:

    • pkgdown: path to the root pkgdown folder

    • g6tr.docs_source: path to the g6tr.docs package under packages/

  • Otherwise, assumes x is a package name (e.g., "g6tr.cjt") and returns:

    • package_source: path to its package folder under packages/

Usage

pkd_get_sources_for(package, monorepo_dir = ".")

Arguments

package

Either "root" or a package name (e.g., "g6tr.cjt").

monorepo_dir

Path to the monorepo root. Defaults to ".".

Value

Named character vector of absolute paths to relevant source dirs.

Examples

if (FALSE) { # \dontrun{
pkd_get_sources_for("root", ".")
pkd_get_sources_for("g6tr.cjt", ".")
} # }