| update_database | R Documentation |
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
)
owner |
GitHub repository owner. |
repo |
GitHub repository name. |
asset_name |
Name of the SQLite file in the release. |
local_sqlite_path |
Path to the local SQLite database. |
tag |
Optional release tag. If NULL, uses latest release. |
token |
Optional GitHub token. Defaults to |
algo |
Hash algorithm to use (default: |
update |
Logical; if TRUE, will download the latest database when the local copy is outdated (default: FALSE). |
Invisibly returns TRUE if the local database is up to date,
FALSE if it is outdated (and possibly updated if update = TRUE).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.