Skip to contents

Incrementally load all tournaments for a season into a local file. Skips tournaments already saved. Safe to interrupt and resume.

Usage

build_season(year, file_path, tour = "pga")

Arguments

year

Season year

file_path

Path to data file (.rds or .parquet). Must be specified by user.

tour

Tour name (default: "pga")

Value

Invisibly returns number of tournaments added (integer).

Examples

if (FALSE) { # \dontrun{
# Build 2025 season (run multiple times if needed)
build_season(2025, file_path = tempfile(fileext = ".rds"))
} # }