Skip to content

docs: name functions that exist in help pages and contributor docs - #135

Merged
saiemgilani merged 1 commit into
mainfrom
docs/claimsfix-names
Nov 26, 2026
Merged

saiemgilani merged 1 commit into
mainfrom
docs/claimsfix-names

Conversation

@saiemgilani

@saiemgilani saiemgilani commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Help pages and contributor docs named functions this package does not define. Each reference now names the real function, checked against NAMESPACE (or the R source it points at).

  • R/espn_wbb_event_detail.R, R/espn_wnba_event_detail.R: pbp() -> espn_wbb_pbp() / espn_wnba_pbp().
  • R/espn_wbb_season_meta.R, R/espn_wnba_season_meta.R: the unfilled template names espn_LOWERWBB_week_ranking() / espn_LOWERWNBA_week_ranking() described a "forthcoming" wrapper that already exists; link espn_wbb_week_ranking() / espn_wnba_week_ranking().
  • cran-comments.md: game_all() -> espn_wbb_game_all() / espn_wnba_game_all().

Roxygen sources were regenerated with devtools::document() (R 4.6.1, roxygen2 8.1.0); tools::checkRd() passes on every changed .Rd.

NEWS.md: one bullet under the 3.1.0 Documentation section.

check_claims.py (T1 function names, T2 paths)

findings
before (origin/HEAD) 6
after (this branch) 1

The one remaining finding (R/scb_parsers.R:222, underscore(path)) is notation for a transform, not a function call: a false positive, left as is.

No code changes; no tests affected.

Summary by CodeRabbit

  • Documentation
    • Clarified where to find play identifiers in women’s college basketball and WNBA play-by-play data.
    • Updated season-ranking guidance to point to the functions for retrieving ranked teams by season type and week.
    • Clarified that game-level results include team and player box-score tables.

check_claims.py T1 flagged references to functions this package does not define (renamed wrappers, template placeholders, a sibling package's function without its prefix). Each now names the real function, checked against NAMESPACE.
@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
wehoop Ready Ready Preview Nov 26, 2026 9:30pm UTC

Request Review

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Sorry @saiemgilani, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 days and 12 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The documentation now points to sport-specific play-by-play and weekly-ranking functions. CRAN comments identify the game-all functions that return team and player box tables. No runtime code changed.

Changes: API documentation references

Layer / File(s) Summary
Correct function references
R/espn_*_event_detail.R, R/espn_*_season_meta.R, man/espn_*_game_play.Rd, man/espn_*_season_ranking.Rd, NEWS.md, cran-comments.md
Play ID descriptions now refer to the corresponding play-by-play functions. Season-ranking descriptions now refer to the corresponding weekly-ranking functions. CRAN comments identify the WBB and WNBA game-all functions for team and player box tables.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to 7eb46

This is a documentation-only update that points users to functions the package actually defines. It does not change behavior, and it is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: documentation references to functions that do not exist are corrected to the functions the package defines. It is specific and matches the changeset, which edits help …
Description check Passed The description follows the repository template's intent. It has a summary that states the purpose, lists each changed file with its replacement, and reports the verification steps (NAMESPACE check, d…
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.
Full details: Title check

Explanation

The title names the main change: documentation references to functions that do not exist are corrected to the functions the package defines. It is specific and matches the changeset, which edits help pages, roxygen sources, and cran-comments.md. The conventional 'docs:' prefix fits a documentation-only change.

Full details: Description check

Explanation

The description follows the repository template's intent. It has a summary that states the purpose, lists each changed file with its replacement, and reports the verification steps (NAMESPACE check, devtools::document(), tools::checkRd(), and a check_claims.py before/after comparison). It also notes the NEWS.md entry. Several template sections are missing or left blank: Type of Change is not ticked, Related Issues is empty, Background & Context is absent, the Changes Made table is unfilled, the Submission Checklist is unticked, and the Reviewer Checklist is absent. The summary also exceeds the 2-3 sentence limit in the template comment.

Resolution

Optional improvements: tick the 'docs' type in Type of Change; fill the Changes Made table with one row per changed file; add a short Background & Context note explaining why the names were wrong; tick the Submission Checklist items that apply (for example, devtools::document() was run and NEWS.md was updated); and shorten the Summary to 2-3 sentences.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1f2f35f3-a81e-48b7-91a1-64c04a187fb8
Commits

Reviewing files that changed from the base of the PR and between b205954 and 7eb464e.

Files selected for processing: 10

  • NEWS.md
  • R/espn_wbb_event_detail.R
  • R/espn_wbb_season_meta.R
  • R/espn_wnba_event_detail.R
  • R/espn_wnba_season_meta.R
  • cran-comments.md
  • man/espn_wbb_game_play.Rd
  • man/espn_wbb_season_ranking.Rd
  • man/espn_wnba_game_play.Rd
  • man/espn_wnba_season_ranking.Rd

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.89%. Comparing base (b205954) to head (7eb464e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #135   +/-   ##
=======================================
  Coverage   83.89%   83.89%           
=======================================
  Files         136      136           
  Lines       24267    24267           
=======================================
  Hits        20358    20358           
  Misses       3909     3909           

☔ 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.

@saiemgilani
saiemgilani merged commit d884eb5 into main Nov 26, 2026
9 checks passed

This branch was successfully deployed

1 active deployment
Preview — 7eb464e5 Deployed Nov 26, 2026 by vercel[bot]
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.

1 participant