powered by
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 )
Invisibly returns the full path to the downloaded file.
Repository owner.
Repository name.
Name of the SQLite asset in the release.
Local directory where the file should be saved.
Optional release tag (e.g., "v1.2.0"). If NULL, the latest release is used.
"v1.2.0"
Hash algorithm (default: "sha256").
"sha256"
Optional GitHub token. Defaults to Sys.getenv("GITHUB_PAT").
Sys.getenv("GITHUB_PAT")
Whether to overwrite existing file (default: TRUE).
if (FALSE) { download_sqlite_release( owner = "myuser", repo = "myrepo", asset_name = "database.sqlite", dest_dir = tempdir() ) }
Run the code above in your browser using DataLab