check_acdc: 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"
)Value
Returns TRUE if the local database is up to date,
FALSE if it is outdated.
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").
Examples
Run this codeif (FALSE) {
check_acdc("acdc.db")
}
Run the code above in your browser using DataLab