tt_download: download tt data Download all or specific files identified in...

Description Usage Arguments Value PAT Examples

View source: R/tt_download.R

Description

download tt data

Download all or specific files identified in the tt dataset

Usage

1
tt_download(tt, files = c("All"), ..., branch = "master", auth = github_pat())

Arguments

tt

a 'tt' object, output from tt_load_gh

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

1
2
3
4
if(interactive()){
tt_output <- tt_load_gh("2019-01-15")
agencies <- tt_download(tt_output, files = "agencies.csv")
}

tidytuesdayR documentation built on Feb. 1, 2022, 9:07 a.m.