check_ted: Check local TED database against GitHub release
Description
Compares the SHA256 hash of a local TED SQLite database (ted.db)
with the hash stored in the latest (or specified) release on
SLesche/truth-effect-database.
Usage
check_ted(
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 ted.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_ted("ted.db")
}
Run the code above in your browser using DataLab