Will download the data if necessary.

get_bca_sqlite_connection(
  version = list(revision = 22, persistent_id = "hdl:11272.1/AB2/LAPUAB/HHU1YP"),
  api_key = Sys.getenv("ABACUS_API_TOKEN"),
  cache_path = Sys.getenv("ABACUS_CACHE_PATH"),
  refresh = FALSE
)

Arguments

version

database version, requires revision number and persistent ID

api_key

Abacus API key

cache_path

cache path for local caching of the database

refresh

optionally refresh the local database if set to TRUE

Value

A database connection