Skip to content

docs: make citation guidance unmissable (multigroup.vaccine) - #85

Merged
damontoth merged 2 commits into
mainfrom
citation/how-to-cite
Sep 25, 2026
Merged

damontoth merged 2 commits into
mainfrom
citation/how-to-cite

Conversation

@gvegayon

@gvegayon gvegayon commented Aug 6, 2026

Copy link
Copy Markdown
Member

Makes citation guidance for multigroup.vaccine hard to miss, and corrects the citation metadata.

Motivation: the package has far more users than citations, and the usual reason is that people cannot find what to cite. Every change below is aimed at that gap.

inst/CITATION

  • The entry hard-coded the year and R package version 0.1.1; both now track the package metadata.
  • Added the CRAN DOI 10.32614/CRAN.package.multigroup.vaccine to the package entry (CRAN began minting these in 2024).
  • The year is now resolved from Date/Publication → Date → current year, so the entry cannot render as (????).

Documentation

  • README: a > [!NOTE] "How to cite" callout near the top. Both the source (.qmd/.Rmd) and the rendered README.md are updated; the block is static markdown, so no re-render was required.
  • Vignettes (4): a short citation callout under the front matter (Quarto .callout-note in .qmd, a blockquote in .Rmd).
  • Startup message: a one-line packageStartupMessage on attach pointing at citation("multigroup.vaccine"). It is suppressible in the normal way and does not fire on ::.

Verification

  • utils::readCitationFile() parses the new file against the package DESCRIPTION, and the rendered entries were inspected.
  • All R/*.R files still parse() and all man/*.Rd still pass tools::parse_Rd().
  • Every DOI referenced here was checked to resolve; volumes, issues and pages were verified against CrossRef.

Note

Opened by a co-author — you maintain this package, so please review the startup message and wording and adjust to taste.

🤖 Generated with Claude Code

- The entry hard-coded the year and `R package version 0.1.1`; both now track the package metadata.

Adds a How to cite note to the README, vignettes and ?multigroup.vaccine, plus a startup message, and adds the CRAN DOI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 6, 2026 07:03
@codecov

codecov Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes citation guidance for the multigroup.vaccine R package highly visible across key user entry points (README + vignettes + attach-time message) and updates inst/CITATION so the rendered citation tracks package metadata (version/year) and includes the CRAN DOI.

Changes:

  • Added prominent “How to cite” callouts to the README and four vignettes.
  • Added an attach-time startup message pointing users to citation("multigroup.vaccine").
  • Updated inst/CITATION to derive year/version from package metadata and include the CRAN DOI.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vignettes/run_model_on_command_line.Rmd Adds a short “How to cite” callout near the top of the vignette.
vignettes/measles_agemodel.Rmd Adds a short “How to cite” callout near the top of the vignette.
vignettes/contact_matrix_examples.Rmd Adds a short “How to cite” callout near the top of the vignette.
vignettes/census_functions_demo.Rmd Adds a short “How to cite” callout near the top of the vignette.
README.Rmd Adds a prominent “How to cite” note block in the source README.
README.md Adds the rendered “How to cite” note block to the published README.
R/zzz.R Adds .onAttach() startup message directing users to citation("multigroup.vaccine").
inst/CITATION Updates citation entry to use package metadata for year/version and adds the CRAN DOI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.Rmd
Comment on lines 18 to +22
<!-- badges: start -->

<!-- how-to-cite -->
> [!NOTE]
> **How to cite multigroup.vaccine.** If you use **multigroup.vaccine** in published work, please cite it:
Comment thread R/zzz.R Outdated
Comment on lines +1 to +5
.onAttach <- function(libname, pkgname) {
packageStartupMessage(
"Using multigroup.vaccine in your research? Please cite it: citation(\"multigroup.vaccine\")"
)
}
@gvegayon
gvegayon requested a review from damontoth August 6, 2026 07:33
@damontoth
damontoth merged commit 1a04837 into main Sep 25, 2026
8 checks passed
@damontoth
damontoth deleted the citation/how-to-cite branch September 25, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants