Internal helper function that compares a local SQLite database with a GitHub release and optionally downloads the latest version.
update_database(
owner,
repo,
asset_name,
local_sqlite_path,
tag = NULL,
token = Sys.getenv("GITHUB_PAT"),
algo = "sha256",
update = FALSE
)Invisibly returns TRUE if the local database is up to date,
FALSE if it is outdated (and possibly updated if update = TRUE).
GitHub repository owner.
GitHub repository name.
Name of the SQLite file in the release.
Path to the local SQLite database.
Optional release tag. If NULL, uses latest release.
Optional GitHub token. Defaults to Sys.getenv("GITHUB_PAT").
Hash algorithm to use (default: "sha256").
Logical; if TRUE, will download the latest database when the local copy is outdated (default: FALSE).