Skip to contents

Runs a transparent checklist: study layout, replication.yml, code and data paths, resolvable code file links (source() / Stata do), baked display outputs, optional tests/testthat/, substantive (published-value) checks under tests/substantive/, and (optionally) live execution of every table and figure.

Usage

check_folder_replication(
  location = ".",
  full_replication = FALSE,
  registry_root = NULL
)

check_package_replication(location, full_replication = FALSE)

check_replication(
  location = ".",
  full_replication = FALSE,
  registry_root = NULL
)

Arguments

location

Local study path, GitHub address, or installed package path. Defaults to the current working directory when it contains replication.yml or DESCRIPTION. This is the location analog of doi = "local" used by list_replications(), run_replication(), and get_code() — both mean "the study checked out in the current working directory"; no registry lookup is required.

full_replication

If TRUE, also run every table and figure via run_replication() and require success.

registry_root

Optional path to the registry checkout (folder studies in a monorepo). Defaults to getOption("replicateEverything.registry_root").

Value

A list with ok (logical), checks (data frame), and study_path.

A list with ok (logical), checks (data frame), and package_path.

A list with ok (logical), checks (data frame), and study_path or package_path. Prefer the public check_and_bake_study() entry point.

Functions

  • check_folder_replication(): Folder-backed implementation.

    Runs a transparent checklist: study layout, replication.yml, code and data paths, resolvable code file links (source() / Stata do), baked display outputs under outputs/, optional tests/testthat/, substantive substantive (published-value) checks under tests/substantive/, and (optionally) live execution of every table and figure.

  • check_package_replication(): Package-backed implementation.

    Runs a transparent checklist: package layout, replication.yml, study make_* / format_* helpers, baked artifacts, substantive (published-value) checks under tests/substantive/, and (optionally) live execution of every table and figure via replicateEverything.