Skip to content

baseballr

1.6.0

Acquiring and Analyzing Baseball Data

0packages depend
33.5Kdownloads / year
49.3%test coverage
0/13checks pass

Overview

About
Maintained by Saiem GilaniFirst published 2022-04-254 releasesCRAN page ↗GitHub ↗

Provides numerous utilities for acquiring and analyzing baseball data from online sources such as 'Baseball Reference' https://www.baseball-reference.com/, 'FanGraphs' https://www.fangraphs.com/, and the 'MLB Stats' API https://www.mlb.com/.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 4.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.28
49.3%
Coverage · measured lines
100%
Documentation · exports
18
Dependencies · direct
Check history
  • NOTE2026-06-09
    0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    0 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    3 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,527 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
2%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

33.5K
CRAN downloads in the past year
Rank #2,704 · ~92/day · ~2.8K/mo
Daily download trend is not available in this view yet.
1.6K30 days
6.4K90 days
33.5K1 year
Compare downloads with other packages →
Also on1.4K r2u43 autocran31 c2d4u

Repository

Repository
431Stars
111Forks
44Open issues
1Open PRs
4Releases
726Commits
24Contributors
baseballsabermetricsrstatcastpitchfx
726 commits · Last activity 2026-07-23 · +0.5% stars, 30d

Stars over time

2025-07-17 · 3872026-08-07 · 431

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/billpetti/baseballr on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
Governance and community (1)
Issue templates
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Contributors (4)
Contributor
Contributor
Contributor
Contributor · added in 1.3.0
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.6.0Latest
    2024-01-16 · current release · diff ↗
  • unarchivedReturned to CRAN
    2024-01-16
  • archivedRemoved from CRAN
    2023-10-15
    repeated policy violation On Internet access
  • R
    R 4.3.0 released · 2023-04-21
  • 1.5.0
    2023-03-21 · diff ↗
  • unarchivedReturned to CRAN
    2023-03-21
  • archivedRemoved from CRAN
    2023-02-07
    policy violation On Internet access
  • 1.3.0
    2022-09-09 · diff ↗
  • 1.2.0
    2022-04-25
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-04-25
Total releases
4 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.0.0
Bundled data
36 KB / 4 files
Download size
299 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("baseballr")
Gilani, S., Baumer, B., Dilday, B., Frey, R., Kay, C., & Petti, B. (2024). baseballr: Acquiring and Analyzing Baseball Data (Version 1.6.0) [Computer software]. https://doi.org/10.32614/CRAN.package.baseballr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for baseballr version 1.6.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy