View source: R/github_release_utils.R
| compare_sqlite_to_release | R Documentation |
Compares the SHA256 hash of a local SQLite database file with the hash file stored in a GitHub release.
compare_sqlite_to_release(
owner,
repo,
asset_name,
local_sqlite_path,
tag = NULL,
token = Sys.getenv("GITHUB_PAT"),
algo = "sha256"
)
owner |
Repository owner. |
repo |
Repository name. |
asset_name |
Name of the SQLite asset (used to derive hash filename). |
local_sqlite_path |
Path to local SQLite database. |
tag |
Optional release tag. If NULL, uses latest release. |
token |
Optional GitHub token. Defaults to |
algo |
Hash algorithm (default: |
This avoids downloading the full database when checking for updates.
TRUE if hashes match, FALSE otherwise.
## Not run:
compare_sqlite_to_release(
owner = "myuser",
repo = "myrepo",
asset_name = "database.sqlite",
local_sqlite_path = "database.sqlite"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.