citHeader("To cite pilotr in publications, please use:")

# The R and Python packages are released separately, so the note names the R package
# alone: meta$Version is this package's version, which the Python package need not share.
# The doi and url fields hold the DOI CRAN assigned on publication and the package's
# canonical CRAN page, the same pair utils::citation() generates for a copy installed from
# CRAN that has no CITATION file. The DOI names the R package across all its versions, so
# the version in the note identifies the release cited. Zenodo archives every GitHub
# release of the repository, which carries the Python package as well. CRAN is the
# publisher: it distributes the package and registered the DOI. Every reference the
# package family gives names it alike, in full.
bibentry(
  bibtype = "Manual",
  title   = "pilotr: Simulate experimental and behavioural data from a portable design specification",
  author  = person("Pablo", "Bernabeu", comment = c(ORCID = "0000-0003-1083-2460")),
  year    = "2026",
  publisher = "Comprehensive R Archive Network (CRAN)",
  note    = sprintf("R package version %s", meta$Version),
  doi     = "10.32614/CRAN.package.pilotr",
  url     = "https://CRAN.R-project.org/package=pilotr",
  textVersion = sprintf(paste0(
    "Bernabeu, P. (2026). pilotr: Simulate experimental and behavioural data ",
    "from a portable design specification. R package version %s. ",
    "Comprehensive R Archive Network (CRAN). ",
    "https://doi.org/10.32614/CRAN.package.pilotr"
  ), meta$Version)
)
