rec_checkout_internal_deps: Recursively check out all repos to match branch determined by...

View source: R/caching.R

rec_checkout_internal_depsR Documentation

Recursively check out all repos to match branch determined by ref starting from repos_to_process.

Description

This uses the staged_dependencies.yaml to discover the upstream and downstream packages. Another function allows to check that only (and all) direct upstream and downstream packages are listed there. The packages listed there are internal packages. All other dependencies listed in the DESCRIPTION file are external dependencies.

Usage

rec_checkout_internal_deps(
  repos_to_process,
  ref,
  direction = "upstream",
  local_repos = get_local_pkgs_from_config(),
  fallback_branch = "main"
)

Arguments

repos_to_process

list of list(repo, host) repos to start from

ref

(character) tag/branch to build

direction

(character) direction in which to discover packages either or both of "upstream" and "downstream" to recursively checkout upstream and/or downstream dependencies

local_repos

(data.frame) repositories that should be taken from local rather than cloned; columns are ⁠repo, host, directory⁠

fallback_branch

(character) the default branch to try to use if no other matches found

Value

A data frame, one row per checked out repository with columns repo, host and cache_dir


openpharma/staged.dependencies documentation built on Aug. 27, 2023, 10:17 a.m.