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.
pb_download_url(file = NULL, repo = guess_repo(), tag = "latest", .token = get_token())
file | name or vector of names of files to be downloaded. If |
---|---|
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 |
.token | GitHub authentication token. Typically set from an
environmental variable, e.g. in a |
the URL to download a file
pb_download_url("data/iris.tsv.xz", repo = "cboettig/piggyback-tests", tag = "v0.0.1")#> [1] "https://github.com/cboettig/piggyback-tests/releases/download/v0.0.1/data.2firis.tsv.xz"