Download data from an existing release
pb_download(file = NULL, dest = usethis::proj_get(), repo = guess_repo(), tag = "latest", overwrite = TRUE, ignore = "manifest.json", use_timestamps = TRUE, show_progress = TRUE, .token = get_token())
file | name or vector of names of files to be downloaded. If |
---|---|
dest | name of vector of names of where file should be downloaded.
Should be a directory or a list of filenames the same length as |
repo | Repository name in format "owner/repo". Will guess the current repo if not specified. |
tag | tag for the GitHub release to which this data is attached |
overwrite | Should any local files of the same name be overwritten?
default |
ignore | a list of files to ignore (if downloading "all" because
|
use_timestamps | If |
show_progress | logical, should we show progress bar for download?
Defaults to |
.token | GitHub authentication token. Typically set from an
environmental variable, e.g. in a |
## Download a specific file. ## (dest can be omitted when run inside and R project) piggyback::pb_download("data/iris.tsv.gz", repo = "cboettig/piggyback-tests", dest = tempdir())#> Warning: file(s) data/iris.tsv.gz not found in repo cboettig/piggyback-tests#># NOT RUN { ## Download all files piggyback::pb_download(repo = "cboettig/piggyback-tests", dest = tempdir()) # }