Skip to content

702: Use sentence case and full stops in argument docs - #1255

Draft
nikosbosse wants to merge 6 commits into
mainfrom
issue-702-param-sentence-case
Draft

nikosbosse wants to merge 6 commits into
mainfrom
issue-702-param-sentence-case

Conversation

@nikosbosse

@nikosbosse nikosbosse commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

CLAUDE:

Description

This PR closes #702.

Brings the @param documentation in line with the tidyverse style guide: every argument description now starts with a capital letter and ends with a full stop. Changes are confined to roxygen comments in R/ and the regenerated man/*.Rd pages; no code changes.

A few small content fixes came along the way:

  • get_forecast_counts(): the collapse default in the docs had an unbalanced backtick/parenthesis (it rendered as a \verb span with a misplaced parenthesis).
  • quantile_to_interval(): the ... description was uninformative. It now says that for quantile_to_interval() the arguments are passed on to quantile_to_interval_dataframe() / quantile_to_interval_numeric() and are ignored otherwise (the three functions share one Rd page and the two helpers accept but ignore ...).
  • quantile_to_interval_dataframe() / sample_to_interval_long(): the keep_quantile_col defaults are now both code-formatted, and a duplicated word ("interval interval") in the sample_to_interval_long() return value is fixed.

Re-wrapped roxygen lines are kept at 80 characters or fewer (lintr allows 120). A NEWS item is added under a new "Documentation" heading in the development version section.

Review

An independent adversarial agent review of the full diff was done (verdict: approve). In response:

  • Changed: corrected the line-length statement above (.lintr sets 120, not 80; all changed lines are at most 80).
  • Changed: replaced an internal process note in this description with this review section.
  • Changed: code-formatted FALSE in the quantile_to_interval_dataframe() keep_quantile_col description for consistency with sample_to_interval_long(), and fixed "interval interval" in sample_to_interval_long()'s @returns.
  • Not changed: the NEWS bullet wording. The reviewer suggested optionally shortening it. The current wording names the style guide being followed, matches the existing "## Documentation" heading format, and is already one line, so it was kept.
  • Not changed: na.rm in R/metrics-quantile.R ends with "?" ("Should missing values be removed?"). This is a well-formed question, which the style guide allows, so it was left as is.
  • Not acted on here: Update docs to conform to tidyverse styleguide #702 is assigned to jamesmbaazam. The maintainer confirmed it is fine to include it in this PR; reassigning the issue is left to the maintainer when the PR is marked ready.
  • Confirmed, no action: the tests N/A is correct for a docs-only change, and the man/*.Rd diffs mirror the roxygen edits with no NAMESPACE/DESCRIPTION churn.

Checklist

  • My PR is based on a package issue and I have explicitly linked it.

  • I have included the target issue or issues in the PR title as follows: issue-number: PR title

  • I have tested my changes locally. (devtools::test(): 0 failures, 0 errors.)

  • N/A: I have added or updated unit tests where necessary. Documentation-only change; no behaviour changes, so no failing-before/passing-after test is possible. The existing test suite passes unchanged.

  • I have updated the documentation if required.

  • I have built the package locally and run rebuilt docs using roxygen2. (devtools::document() produces no further man/ changes; NAMESPACE/DESCRIPTION churn from the local roxygen2 8.0.0 was reverted.)

  • My code follows the established coding standards and I have run lintr::lint_package() to check for style issues introduced by my changes. (lintr::lint() on every changed R file: only the pre-existing spurious object_usage_linter warnings from running against an uninstalled package.)

  • I have added a news item linked to this PR.

  • I have reviewed CI checks for this PR and addressed them as far as I am able. (CI pending.)

  • Follow-up: fixed a typo in the shared predicted argument description for sample metrics ("a vector of size n" should be "size N", the number of samples). Merged main to resolve the NEWS conflict.

🤖 Generated with Claude Code

nikosbosse and others added 4 commits November 8, 2026 13:20
Bring argument documentation in line with the tidyverse style guide:
capitalise the first word and end every @PARAM description with a full
stop. Also fix an unbalanced backtick/paren in get_forecast_counts()'s
`collapse` default and give quantile_to_interval()'s `...` a real
description. Regenerated the affected man pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.18%. Comparing base (779d7d6) to head (4a42edd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1255   +/-   ##
=======================================
  Coverage   99.18%   99.18%           
=======================================
  Files          41       41           
  Lines        2331     2331           
=======================================
  Hits         2312     2312           
  Misses         19       19           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

nikosbosse and others added 2 commits November 9, 2026 23:31
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

Update docs to conform to tidyverse styleguide

1 participant