Skip to contents

This function establishes and returns a connection to an SQLite database.

Usage

init_db_conn(db_path = Sys.getenv("SDB_PATH"))

Arguments

db_path

The path to the SQLite database (default is "SDB_PATH" env variable).

Value

A connection object to the SQLite database.

Examples

if (FALSE) { # \dontrun{
  conn <- init_db_conn(Sys.getenv("SDB_PATH"))
} # }