tt_download_file: Download a TidyTuesday dataset file

View source: R/tt_download_file.R

tt_download_fileR Documentation

Download a TidyTuesday dataset file

Description

Download an actual data file from the TidyTuesday github repository.

Usage

tt_download_file(tt, x, ..., auth = gh::gh_token())

Arguments

tt

A tt object, output from tt_load_gh().

x

Index or name of file to download.

...

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

tibble containing the contents of the file downloaded from git

Examples


tt_gh <- tt_load_gh("2019-01-15")

agencies <- tt_download_file(tt_gh, 1)
launches <- tt_download_file(tt_gh, "launches.csv")


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