check_ted: Check local TED database against GitHub release

View source: R/check_dbs.R

check_tedR Documentation

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"
)

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").

Value

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

Examples

## Not run: 
check_ted("ted.db")

## End(Not run)

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