tt_download: Download TidyTuesday data

View source: R/tt_download.R

tt_downloadR Documentation

Download TidyTuesday data

Description

Download all or specific files identified in a TidyTuesday dataset.

Usage

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

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.

Value

A list of tibbles from the downloaded files.

Examples


# 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")


tidytuesdayR documentation built on Sept. 14, 2024, 9:08 a.m.