Skip to contents

Returns the path to the Bouncer DuckDB database.

Usage

get_db_path(path = NULL)

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:

  1. ../bouncerdata/bouncer.duckdb (when running from bouncer/ package dir)

  2. bouncerdata/bouncer.duckdb (when running from bouncerverse/ root)

  3. 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")
} # }