Returns the path to the Bouncer DuckDB database.
Arguments
- path
Character string specifying a custom database path. If NULL,
returns the default path.
Value
Character string with the database path
Details
Default location priority:
../bouncerdata/bouncer.duckdb (when running from bouncer/ package dir)
bouncerdata/bouncer.duckdb (when running from bouncerverse/ root)
Falls back to R user data directory if project paths don't exist
Examples
if (FALSE) { # \dontrun{
# Get default database path
get_db_path()
# Specify custom path
get_db_path("~/my_cricket_data/bouncer.duckdb")
} # }