View source: R/github_release_utils.R
| download_sqlite_release | R Documentation |
Downloads a SQLite database file from the latest or a specific GitHub release.
download_sqlite_release(
owner,
repo,
asset_name,
dest_dir,
tag = NULL,
algo = "sha256",
token = Sys.getenv("GITHUB_PAT"),
overwrite = TRUE
)
owner |
Repository owner. |
repo |
Repository name. |
asset_name |
Name of the SQLite asset in the release. |
dest_dir |
Local directory where the file should be saved. |
tag |
Optional release tag (e.g., |
algo |
Hash algorithm (default: |
token |
Optional GitHub token. Defaults to |
overwrite |
Whether to overwrite existing file (default: TRUE). |
Invisibly returns the full path to the downloaded file.
## Not run:
download_sqlite_release(
owner = "myuser",
repo = "myrepo",
asset_name = "database.sqlite",
dest_dir = tempdir()
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.