Skip to contents

Single maintainer entry point for dependency setup. Mirrors the build_outputs() / validate_outputs() scope pattern: pass a study location to install for one study, or what = "everywhere" to install for every study in the registry index (see load_index()).

Usage

install_dependencies(
  what = ".",
  registry_root = NULL,
  repo = NULL,
  folder = NULL,
  verbose = TRUE
)

Arguments

what

Study DOI, registry handle, local path, or GitHub slug (default ".", the current working directory); or "everywhere" to install dependencies for every study in the registry index.

registry_root

Optional registry checkout for monorepo dev.

repo, folder

Optional registry row hints. Ignored when what = "everywhere".

verbose

Logical. Print progress lines. Only used when what = "everywhere".

Value

Invisibly TRUE for a single study, or (when what = "everywhere") a named list of per-DOI results (ok / error).

Examples

if (FALSE) { # \dontrun{
install_dependencies("10.1017/S0003055403000534")
install_dependencies("10.1017/S0003055422000284")
install_dependencies("10.1257/aer.91.5.1369")
install_dependencies("rep-template")
install_dependencies("path/to/study-repo")
options(replicateEverything.registry_root = "../registry")
install_dependencies("everywhere")
} # }