pb_download {piggyback} | R Documentation |
Download data from an existing release
Description
Download data from an existing release
Usage
pb_download(
file = NULL,
dest = ".",
repo = guess_repo(),
tag = "latest",
overwrite = TRUE,
ignore = "manifest.json",
use_timestamps = TRUE,
show_progress = getOption("piggyback.verbose", default = interactive()),
.token = gh::gh_token()
)
Arguments
file |
name or vector of names of files to be downloaded. If |
dest |
name of vector of names of where file should be downloaded.
Can be a directory or a list of filenames the same length as |
repo |
Repository name in format "owner/repo". Defaults to |
tag |
tag for the GitHub release to which this data should be 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 |
DEPRECATED. |
show_progress |
logical, show a progress bar be shown for uploading?
Defaults to |
.token |
GitHub authentication token, see |
Examples
## Not run:
## 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())
## End(Not run)
## Not run:
## Download all files
piggyback::pb_download(repo = "cboettig/piggyback-tests",
dest = tempdir())
## End(Not run)