Repository navigation
702: Use sentence case and full stops in argument docs - #1255
Draft
nikosbosse wants to merge 6 commits into
Draft
nikosbosse wants to merge 6 commits into
nikosbosse wants to merge 6 commits into
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CLAUDE:
Description
This PR closes #702.
Brings the
@paramdocumentation 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 inR/and the regeneratedman/*.Rdpages; no code changes.A few small content fixes came along the way:
get_forecast_counts(): thecollapsedefault in the docs had an unbalanced backtick/parenthesis (it rendered as a\verbspan with a misplaced parenthesis).quantile_to_interval(): the...description was uninformative. It now says that forquantile_to_interval()the arguments are passed on toquantile_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(): thekeep_quantile_coldefaults are now both code-formatted, and a duplicated word ("interval interval") in thesample_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:
.lintrsets 120, not 80; all changed lines are at most 80).FALSEin thequantile_to_interval_dataframe()keep_quantile_coldescription for consistency withsample_to_interval_long(), and fixed "interval interval" insample_to_interval_long()'s@returns.na.rminR/metrics-quantile.Rends with "?" ("Should missing values be removed?"). This is a well-formed question, which the style guide allows, so it was left as is.man/*.Rddiffs 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 furtherman/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 spuriousobject_usage_linterwarnings 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
predictedargument description for sample metrics ("a vector of size n" should be "size N", the number of samples). Mergedmainto resolve the NEWS conflict.🤖 Generated with Claude Code