check_acdc: Check local ACDC database against GitHub release

View source: R/check_dbs.R

check_acdcR Documentation

Check local ACDC database against GitHub release

Description

Compares the SHA256 hash of a local ACDC SQLite database (acdc.db) with the hash stored in the latest (or specified) release on jstbcs/acdc-database.

Usage

check_acdc(
  local_sqlite_path,
  tag = NULL,
  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.

token

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

algo

Hash algorithm used for comparison (default: "sha256").

Value

Returns TRUE if the local database is up to date, FALSE if it is outdated.

Examples

## Not run: 
check_acdc("acdc.db")

## End(Not run)

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