Skip to content

Standardise R package naming style - #222

Merged
joshwlambert merged 1 commit into
epiforecasts:mainfrom
joshwlambert:pkg-name-style
May 20, 2026
Merged

joshwlambert merged 1 commit into
epiforecasts:mainfrom
joshwlambert:pkg-name-style

Conversation

@joshwlambert

@joshwlambert joshwlambert commented May 11, 2026 •

Copy link
Copy Markdown
Collaborator

This PR addresses #202 by standardising the style of R packages across all documentation, using the {pkg} style.

Summary by CodeRabbit

  • Documentation
    • Updated contributing guide and README with consistent package name formatting.
    • Enhanced vignette documentation with improved explanations of stochastic simulation, model concepts, and multi-parameter analysis workflows.
    • Standardised inline code formatting across release notes and documentation files for improved clarity.

Review Change Stack

@joshwlambert joshwlambert added the documentation Improvements or additions to documentation label May 11, 2026
@joshwlambert
joshwlambert requested review from pearsonca and sbfnk May 11, 2026 09:03
@coderabbitai

coderabbitai Bot commented May 11, 2026 •

Copy link
Copy Markdown

Walkthrough

This PR standardises documentation formatting and package name references across the repository. Templated package names are replaced with hardcoded {ringbp} references in README.Rmd and CONTRIBUTING.md, inline code formatting is applied consistently in the changelog (NEWS.md), and all vignettes are updated with unified {ringbp} markup and refined explanatory text.

Changes

Documentation Formatting Standardisation

Layer / File(s) Summary
Top-level documentation templates
README.Rmd, .github/CONTRIBUTING.md
Replace {{ packagename }} templating with hardcoded {ringbp} in README sections (title, description, installation, contribute, code of conduct). Update CONTRIBUTING.md to use consistent {ringbp} formatting in opening section and use cases paragraph.
Release notes formatting
NEWS.md
Apply consistent inline code formatting (backticks and braces) for package and function names in development release (0.1.2.9999) and stable release (0.1.2) changelog entries.
Vignette documentation updates
vignettes/parameter-sweep.Rmd, vignettes/ringbp-model.Rmd, vignettes/ringbp.Rmd
Render {ringbp} as inline code consistently across all vignettes. Refine introduction text in parameter-sweep vignette to clarify scenario_sim() role. Update ringbp-model vignette formatting throughout model overview and parameter sections. Expand ringbp vignette introduction, add stochastic simulation seed guidance, clarify quarantine and isolation definitions, link to parameter-sweep vignette, and restructure conclusion with new "Use Cases" section.

Possibly related PRs

  • epiforecasts/ringbp#188: Adds ringbp-model.Rmd vignette and schematics that this PR subsequently updates for formatting consistency.
  • epiforecasts/ringbp#201: Modifies ringbp.Rmd vignette content; this PR further updates the same vignette with expanded sections and restructured conclusion.
  • epiforecasts/ringbp#199: Adds CONTRIBUTING.md file that this PR subsequently updates for consistent package name formatting.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarises the main objective of the pull request, which is to standardise R package naming style (specifically adopting the {pkg} format) across documentation files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.Rmd`:
- Around line 25-34: Remove the duplicated introductory paragraph about
`{ringbp}` so the README contains only one clear opening statement;
specifically, delete one of the two adjacent blocks that say "`{ringbp}` is an R
package that provides methods to simulate infectious disease transmission..."
(the duplicated lines containing the `{ringbp}` phrase and the links to the
companion analysis code/GitHub and the DOI paper) leaving a single consolidated
intro that includes the package description and the paper/link references.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f2cda67c-f0d8-4eea-8874-76b6424e0f4d

📥 Commits

Reviewing files that changed from the base of the PR and between b797132 and cdc5c50.

📒 Files selected for processing (6)
  • .github/CONTRIBUTING.md
  • NEWS.md
  • README.Rmd
  • vignettes/parameter-sweep.Rmd
  • vignettes/ringbp-model.Rmd
  • vignettes/ringbp.Rmd

Comment thread README.Rmd Resolved

@pearsonca pearsonca left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM; minor maintenance note

Comment thread README.Rmd Resolved
@joshwlambert
joshwlambert added this pull request to the merge queue May 20, 2026
Merged via the queue into epiforecasts:main with commit 869fbb0 May 20, 2026
8 checks passed
@joshwlambert
joshwlambert deleted the pkg-name-style branch May 20, 2026 20:57
@joshwlambert joshwlambert mentioned this pull request May 20, 2026
@joshwlambert joshwlambert mentioned this pull request May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants