Skip to content

darh78/bbgraphsR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bbgraphsR (Development Version)

This is a work-in-progress R package for scraping, processing, analyzing and visualizing MLB data — including tools for pulling birthplace stats by country from Baseball Reference.


🚀 Getting Started (for Collaborators)

To contribute or test the package locally, follow these steps:


🔧 1. Clone the repository into a new RStudio project

  1. In RStudio, go to File > New Project > Version Control > Git.
  2. Enter the repository URL: https://github.com/darh78/bbgraphsR.git
  3. Choose a local folder where the project will be saved.
  4. Click Create Project — this will open a new RStudio session with the project.

📦 2. Install development dependencies

You’ll need devtools, which makes it easy to load the package without installing it:

install.packages("devtools") 

▶️ 3. Load the package using devtools::load_all()

From within the project directory (or inside RStudio):

devtools::load_all()

This simulates loading the package as if it were installed, without actually installing it. You can now call any exported functions.

🧪 Example usage

# Load the package code
devtools::load_all()

# Run some functions
get_players_by_country(c("Dominican Republic", "Venezuela"))

viz_wlp_season("AL East", 2025)

viz_debut_running_total(c("Dominican Republic", "Venezuela", "Japan", "Mexico", "Puerto Rico", "Cuba" ))

📌 Notes

•	This package is not yet available via CRAN or installable via library().
•	Once stable, installation instructions will be updated.

📬 Contact

Maintainer: Daniel Hernández

GitHub: @darh78

About

Repo for the bbgraphsR package

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages