Learn R Programming

tidytuesdayR (version 1.1.2)

tt_download: Download TidyTuesday data

Description

Download all or specific files identified in a TidyTuesday dataset.

Usage

tt_download(tt, files = "All", ..., auth = gh::gh_token())

Value

A list of tibbles from the downloaded files.

Arguments

tt

A tt object, output from tt_load_gh().

files

Which file names to download. Default "All" downloads all files for the specified week.

...

Additional parameters to pass to the parsing functions. Note: These arguments will be passed for all filetypes.

auth

A GitHub token. See gh::gh_token() for more details.

Examples

Run this code
if (FALSE) { # interactive()
# Get the list of files for a week.
tt_output <- tt_load_gh("2019-01-15")

# Download a specific file.
agencies <- tt_download(tt_output, files = "agencies.csv")
}

Run the code above in your browser using DataLab