
Install Bouncerdata from GitHub Release
Source:R/user_install.R
install_bouncerdata_from_release.RdDownloads and installs cricket data from the bouncerdata GitHub releases.
This is an alternative to install_all_bouncer_data() that downloads
pre-processed data instead of building locally from Cricsheet.
Arguments
- repo
Character. GitHub repository. Default "peteowen1/bouncerdata".
- formats
Character vector. Data formats to download:
"long_form" = Tests, First-class matches
"short_form" = ODIs, T20s, franchise leagues
"all" = both (default)
- genders
Character vector. "male", "female", or c("male", "female"). Default is both.
- types
Character vector. "international", "club", or both. Default is both.
- tag
Character. Specific release tag to download, or "latest".
- data_dir
Character. Directory to store data. Default uses
find_bouncerdata_dir().- build_db
Logical. If TRUE, build DuckDB from downloaded JSONs. Default TRUE.
Examples
if (FALSE) { # \dontrun{
# Install all data
install_bouncerdata_from_release()
# Install only short form (T20s, ODIs)
install_bouncerdata_from_release(formats = "short_form")
# Install only IPL (short form, male, club)
install_bouncerdata_from_release(
formats = "short_form",
genders = "male",
types = "club"
)
} # }