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@returncolumn 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) overapi.foxsports.com/bifrost/v1/mlb/*. -
HTTP layer migrated from
httrtohttr2.httris dropped andhttr2 (>= 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.aspxscrapers return data again); the NCAA wrappers (ncaa_*()) can fetchstats.ncaa.orgagain after the site simultaneously tightened its Akamai bot-protection (a hard 403 or a soft HTTP-200bm-verifyinterstitial) and redesigned its pages --request_with_proxy()now falls back to a stealth headless-Chrome fetch via the optionalchromotepackage (added toSuggests; 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); newstatcast_search_minors()/statcast_search_wbc()/statcast_pitch_colors(); elevenload_mlb_*()model-dataset loaders;sit_codessplits onmlb_stats()/mlb_teams_stats();mlb_pbp()base-state and pre-pitch count corrections; pregamemlb_game_info()no longer errors; documentation migrated to roxygen2 8.1.0;cphrole 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-2010mlb_pbp()support restored, era-awarebref_standings_on_date()(pre-1969 and 1969-1993 layouts), and Baseball Reference requests now retry HTTP 429 with exponential backoff.
- 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)
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.)
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