Produces a structured citation block for a corpus that can be included in manuscripts. The block documents the number of works, sources queried, date range, scimapR version, and corpus hash for reproducibility.
Usage
sm_cite_corpus(
corpus,
style = c("text", "bibtex", "yaml"),
call = rlang::caller_env()
)Value
A character string containing the formatted citation. Printed to the console and returned invisibly.
See also
Other reproducibility:
sm_certificate(),
sm_diff_corpora(),
sm_hash_corpus(),
sm_provenance(),
sm_snapshot()
Examples
corpus <- sm_example_corpus()
sm_cite_corpus(corpus)
#> Corpus assembled using scimapR v0.4.0 on 2026-06-01. Contains 200 works by 80
#> authors (2015-2024). Data sources: synthetic. Corpus hash: ea446b5f4465.