tt_download {tidytuesdayR} | R Documentation |
download tt data
Description
Download all or specific files identified in the tt dataset
Usage
tt_download(tt, files = c("All"), ..., branch = "master", auth = github_pat())
Arguments
tt |
a 'tt' object, output from |
files |
List the file names to download. Default to asking. |
... |
pass methods to the parsing functions. These will be passed to ALL files, so be careful. |
branch |
which branch to be downloading data from. Default and always should be "master". |
auth |
github Personal Access Token. See PAT section for more information |
Value
list of tibbles of the files downloaded.
PAT
A Github PAT is a personal Access Token. This allows for signed queries to the github api, and increases the limit on the number of requests allowed from 60 to 5000. Follow instructions at <https://happygitwithr.com/github-pat.html> to set the PAT.
Examples
if(interactive()){
tt_output <- tt_load_gh("2019-01-15")
agencies <- tt_download(tt_output, files = "agencies.csv")
}
[Package tidytuesdayR version 1.0.3 Index]