Skip to contents

Text representation of the study DAG for Shiny / CLI

Usage

describe_study_dag(meta, repo = NULL, folder = NULL)

Arguments

meta

Parsed replication metadata, or a DOI / registry handle. Pass "local" to describe the study in the current working directory (no registry lookup needed; see resolve_doi_input()).

repo

Optional repository slug when meta is a DOI or handle.

folder

Optional registry folder when meta is a DOI or handle.

Value

Character vector of component strings.

Examples

if (FALSE) { # \dontrun{
describe_study_dag("10.1177/00491241211036161")
describe_study_dag("10.1017/S0003055403000534")
describe_study_dag("10.1017/S0003055422000284")
describe_study_dag("10.1257/aer.91.5.1369")
describe_study_dag("rep-template")

# Pass a DOI from a get_study() handle:
st <- get_study("10.1017/S0003055403000534")
describe_study_dag(st$doi)

# setwd() to a checked-out study repo (or open its RStudio project) and
# sanity-check the parsed DAG without any registry — no DOI needed.
setwd("path/to/rep-my-study")
describe_study_dag("local")
} # }