Download data from an existing release
pb_download(
file = NULL,
dest = ".",
repo = guess_repo(),
tag = "latest",
overwrite = TRUE,
ignore = "manifest.json",
use_timestamps = TRUE,
show_progress = TRUE,
.token = get_token()
)
name or vector of names of files to be downloaded. If NULL
,
all assets attached to the release will be downloaded.
name of vector of names of where file should be downloaded.
Can be a directory or a list of filenames the same length as file
vector. Any directories in the path provided must already exist.
Repository name in format "owner/repo". Will guess the current repo if not specified.
tag for the GitHub release to which this data should be attached.
Should any local files of the same name be overwritten?
default TRUE
.
a list of files to ignore (if downloading "all" because
file=NULL
).
DEPRECATED.
logical, show a progress bar be shown for uploading?
Defaults to TRUE
.
GitHub authentication token, see [gh::gh_token()]
if (FALSE) {
## Download a specific file.
## (dest can be omitted when run inside and R project)
piggyback::pb_download("iris.tsv.gz",
repo = "cboettig/piggyback-tests",
dest = tempdir())
}
if (FALSE) {
## Download all files
piggyback::pb_download(repo = "cboettig/piggyback-tests",
dest = tempdir())
}