Skip to content

docs: make citation guidance unmissable (netdiffuseR) - #85

Open
gvegayon wants to merge 3 commits into
masterfrom
citation/how-to-cite
Open

docs: make citation guidance unmissable (netdiffuseR)#85
gvegayon wants to merge 3 commits into
masterfrom
citation/how-to-cite

Conversation

@gvegayon

@gvegayon gvegayon commented Aug 6, 2026

Copy link
Copy Markdown
Member

Makes citation guidance for netdiffuseR 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

  • Corrected the journal volume: 42 → 47. The Health Education & Behavior paper is 47(2), 235-248 — the file's own textVersion already said 47.
  • Removed the incorrect ISSN 1367-4803 (that is Bioinformatics') in favour of HEB's 1090-1981.
  • Added the CRAN DOI 10.32614/CRAN.package.netdiffuseR to the package entry (CRAN began minting these in 2024).
  • The year is now resolved from Date/PublicationDate → 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 (6): 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("netdiffuseR"). 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.

🤖 Generated with Claude Code

- **Corrected the journal volume: 42 → 47.** The Health Education & Behavior paper is 47(2), 235-248 — the file's own `textVersion` already said 47.
- Removed the incorrect ISSN `1367-4803` (that is *Bioinformatics*') in favour of HEB's `1090-1981`.

Adds a How to cite note to the README, vignettes and ?netdiffuseR, 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

Copilot AI left a comment

Copy link
Copy Markdown

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 netdiffuseR more prominent across vignettes and the README, adds a startup attach message pointing users to citation("netdiffuseR"), and corrects/modernizes the package’s inst/CITATION metadata.

Changes:

  • Added “How to cite” callouts to 6 vignettes and the README.
  • Added an .onAttach() startup message to encourage citation on package attach.
  • Updated inst/CITATION (volume/issue fields, ISSN, CRAN DOI, and year resolution).

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
vignettes/time_discount_suscep_infect.Rmd Adds a short “How to cite” blockquote near the top.
vignettes/simulating-multiple-behaviors-on-networks.Rmd Adds a short “How to cite” blockquote near the top.
vignettes/rdiffnets.Rmd Adds a short “How to cite” blockquote near the top.
vignettes/not-lost-in-translation-importing-and-exporting-graphs.Rmd Adds a short “How to cite” blockquote near the top.
vignettes/introduction-to-netdiffuser.Rmd Adds a short “How to cite” blockquote near the top.
vignettes/analyzing-medical-innovation-data.Rmd Adds a short “How to cite” blockquote near the top.
README.qmd Adds a prominent citation callout (currently placed inside an R code chunk).
README.md Mirrors the README citation callout (currently placed inside a fenced code block).
R/zzz.R Introduces .onAttach() startup message encouraging citation.
inst/CITATION Corrects article metadata and improves package citation entry (year resolution + CRAN DOI).

Comment thread README.qmd Outdated
Comment on lines +108 to +112
```{r plot_infectsuscept}
# Generating a random graph

<!-- how-to-cite -->
> [!NOTE]

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.

Fixed in the latest commit — the callout is now placed directly above the plot_infectsuscept code chunk instead of inside it.

Comment thread README.md
Comment on lines 131 to +136
``` r
# Generating a random graph

<!-- how-to-cite -->
> [!NOTE]
> **How to cite netdiffuseR.** If you use **netdiffuseR** in published work, please cite it:
Comment thread R/zzz.R
Comment on lines +1 to +5
.onAttach <- function(libname, pkgname) {
packageStartupMessage(
"Using netdiffuseR in your research? Please cite it: citation(\"netdiffuseR\")"
)
}
Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com>
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