update_acdc: Update local ACDC database from GitHub release

View source: R/update_dbs.R

update_acdcR Documentation

Update local ACDC database from GitHub release

Description

Checks whether the local ACDC SQLite database (acdc.db) is up to date with the release on jstbcs/acdc-database and optionally downloads the latest version.

Usage

update_acdc(
  local_sqlite_path,
  tag = NULL,
  update = FALSE,
  token = Sys.getenv("GITHUB_PAT"),
  algo = "sha256"
)

Arguments

local_sqlite_path

Path to the local acdc.db file.

tag

Optional release tag. If NULL, uses latest release.

update

Logical; if TRUE, will download the latest database when the local copy is outdated (default: FALSE).

token

Optional GitHub token. Defaults to Sys.getenv("GITHUB_PAT").

algo

Hash algorithm (default: "sha256").

Value

Invisibly returns TRUE if up to date, FALSE if outdated.

Examples

## Not run: 
update_acdc("acdc.db")
update_acdc("acdc.db", update = TRUE)

## End(Not run)

acdcquery documentation built on Feb. 19, 2026, 5:07 p.m.