pb_download_url {piggyback} | R Documentation |
Get the download url of a given file
Description
Returns the URL download for a public file. This can be useful when writing
scripts that may want to download the file directly without introducing any
dependency on piggyback
or authentication steps.
Usage
pb_download_url(
file = NULL,
repo = guess_repo(),
tag = "latest",
.token = gh::gh_token()
)
Arguments
file |
name or vector of names of files to be downloaded. If |
repo |
Repository name in format "owner/repo". Defaults to |
tag |
tag for the GitHub release to which this data should be attached. |
.token |
GitHub authentication token, see |
Value
the URL to download a file
Examples
## Not run:
pb_download_url("iris.tsv.xz",
repo = "cboettig/piggyback-tests",
tag = "v0.0.1")
## End(Not run)
[Package piggyback version 0.1.5 Index]