Connects to the PLUMES database file. If local is provided, it uses the specified file path, otherwise it defaults to the internal database path and name. The function ensures the database file exists before connecting.

init_con(local = NULL)

Arguments

local

Optional. Path to a local SQLite database file. Defaults to NULL for the internal path.

Value

A DBI connection object.

Examples

if (FALSE) { # \dontrun{
# Connect to a local database
con <- init_con(local = "path/to/local/database.sqlite")

# Connect using default settings
con <- init_con()
} # }