Skip to content

Latest commit

 

History

History
90 lines (74 loc) · 4.58 KB

File metadata and controls

90 lines (74 loc) · 4.58 KB

Release summary

This release adds three new data-source families, modernizes the HTTP layer, and fixes a number of upstream-driven breakages.

  • New ESPN MLB data source. Adds a full family of ESPN Major League Baseball wrappers (espn_mlb_*(), 107 functions) mirroring the naming convention used across the SportsDataverse packages. Coverage includes scoreboard / schedule, play-by-play, team and player box scores, game rosters, standings, betting, athletes, coaches, seasons, franchises, drafts, leaders, and league/event reference data, plus baseball-specific extractors for probable starting pitchers (espn_mlb_game_probables()) and venue / attendance / umpire crew (espn_mlb_game_info()). Every data-returning function documents its output with an @return column table.

  • New ESPN College Baseball data source. Adds a full family of ESPN NCAA college-baseball wrappers (espn_college_baseball_*(), 70 functions) -- thin league-parameterized twins of the ESPN MLB family -- covering scoreboard, play-by-play, team and player box scores, rosters, teams, standings, rankings, conferences, athletes, leaders, tournaments (the College World Series), and the core reference graph.

  • New Fox Sports (Bifrost) MLB data source. Adds read-only Fox Sports MLB wrappers (fox_mlb_*(), 6 functions: team roster, team stats, team game log, standings, league leaders, and odds) over api.foxsports.com/bifrost/v1/mlb/*.

  • HTTP layer migrated from httr to httr2. httr is dropped and httr2 (>= 1.0.0) is added. Depends: R (>= 4.1.0) (the package now uses the native pipe |> throughout).

  • Upstream fixes. FanGraphs requests now pass Cloudflare's challenge (the fg_*() leaders/team/game-log functions and the .aspx scrapers return data again); the NCAA wrappers (ncaa_*()) can fetch stats.ncaa.org again after the site simultaneously tightened its Akamai bot-protection (a hard 403 or a soft HTTP-200 bm-verify interstitial) and redesigned its pages -- request_with_proxy() now falls back to a stealth headless-Chrome fetch via the optional chromote package (added to Suggests; when absent the scrapers emit a clear install message) and each NCAA parser was updated for the new layout; statcast_search() assigns Baseball Savant columns length-tolerantly; and the Spotrac payroll functions track the site's new URLs and schema.

Examples that contact remote services are wrapped in \donttest{} and fail gracefully; the NCAA examples that require the optional browser fallback are shown in each function's documentation Details rather than as executable examples, so routine checks never launch a browser. Vignettes are included for getting started, NCAA scraping, and Statcast usage.

  • CRAN-prep pass (2026-08-26): statcast_search() now trusts Savant's CSV header row instead of renaming columns positionally (fixes a recurring silent column-shift class); new statcast_search_minors() / statcast_search_wbc() / statcast_pitch_colors(); eleven load_mlb_*() model-dataset loaders; sit_codes splits on mlb_stats() / mlb_teams_stats(); mlb_pbp() base-state and pre-pitch count corrections; pregame mlb_game_info() no longer errors; documentation migrated to roxygen2 8.1.0; cph role added; LICENSE year refreshed. The full test suite skips on CRAN (tests run in continuous integration on every push).
  • Further additions in the same cycle: fg_projections() (FanGraphs projection systems), ggpitchzone() (strike-zone pitch plot), mlb_pbp(add_base_state = TRUE) (opt-in per-event base-occupancy reconstruction, validated pitch-for-pitch against Statcast's published base-state columns), pre-2010 mlb_pbp() support restored, era-aware bref_standings_on_date() (pre-1969 and 1969-1993 layouts), and Baseball Reference requests now retry HTTP 429 with exponential backoff.

Test environments

  • local Windows 10, R 4.6.1
  • win-builder (R-devel): three passes during the cycle, all 0 errors | 0 warnings | 0 notes
  • GitHub Actions: macos-latest (release), windows-latest (release), ubuntu-latest (release, oldrel-1)
  • R-hub: linux, windows, macos (R-devel)

R CMD check results

0 errors | 0 warnings | 0 notes

(The local Windows run shows one NOTE about a ''NULL'' file in the check directory; this is a known artifact of rcmdcheck on Windows in the local environment and does not appear on the CI platforms.)

revdepcheck results

We checked 0 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

  • We saw 0 new problems
  • We failed to check 0 packages