Downloads cricket data from Cricsheet and loads it into a local DuckDB database. This is the main function for setting up your bouncer cricket data.
Arguments
- formats
Character vector of formats to download. Options: "test", "odi", "t20i". Default is c("odi", "t20i").
- leagues
Character vector of leagues to download. Options: "ipl", "bbl", "cpl", "psl", "wbbl", etc. Default is c("ipl").
- gender
Character string. "male", "female", or "both". Default "male".
- start_season
Character or numeric. Only download matches from this season onwards. If NULL, downloads all available data.
- db_path
Database path. If NULL, uses default system data directory.
- download_path
Path to store downloaded files. If NULL, uses temp directory.
- keep_downloads
Logical. If TRUE, keeps downloaded JSON files. Default FALSE.
