pb_download | R Documentation |
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 = getOption("piggyback.verbose", default = interactive()),
.token = gh::gh_token()
)
file |
character: vector of names of files to be downloaded. If |
dest |
character: path to destination directory (if length one) or
vector of destination filepaths the same length as |
repo |
string: GH repository name in format "owner/repo". Default |
tag |
string: tag for the GH release, defaults to "latest" |
overwrite |
boolean: should any local files of the same name be overwritten? default |
ignore |
character: vector of files to ignore (used if downloading "all" via |
use_timestamps |
DEPRECATED. |
show_progress |
logical, show a progress bar be shown for uploading?
Defaults to |
.token |
GitHub authentication token, see |
## Download a specific file.
## (if dest is omitted, will write to current directory)
dest <- tempdir()
piggyback::pb_download(
"iris.tsv.gz",
repo = "cboettig/piggyback-tests",
tag = "v0.0.1",
dest = dest
)
list.files(dest)
## Download all files
piggyback::pb_download(
repo = "cboettig/piggyback-tests",
tag = "v0.0.1",
dest = dest
)
list.files(dest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.