Skip to contents

Installs a package from a PR in the g6tr monorepo and then tracks it in the project DESCRIPTION via g6tr_use_packages().

Usage

g6tr_use_pr_packages(
  package,
  pr,
  repo = "g6t/g6tr",
  subdir = NULL,
  dependencies = TRUE,
  project = "."
)

Arguments

package

Package name (e.g. "g6tr.dl").

pr

PR number.

repo

GitHub repo in "owner/name" format. Default is "g6t/g6tr".

subdir

Path to the package within the repo. Default is paste0("packages/", package).

dependencies

Passed to renv::install(). Default TRUE.

project

Path to the project. Default is "." (current working directory) most likely you will not need to change this.

Examples

if (FALSE) { # \dontrun{
g6tr_use_pr_packages("g6tr.dl", 1373)
} # }