tt_load_gh | R Documentation |
Pulls the readme and URLs of the data from the TidyTuesday github folder based on the date provided
tt_load_gh(x, week = NULL, auth = gh::gh_token())
x |
The date of data to pull (in "YYYY-MM-dd" format), or the four-digit year as a number. |
week |
Which week number to use within a given year. Only used when |
auth |
A GitHub token. See |
A tt
object. This contains the files available for the week,
readme html, and the date of the TidyTuesday.
# check to make sure there are requests still available
if (rate_limit_check(quiet = TRUE) > 30) {
tt_gh <- tt_load_gh("2019-01-15")
## readme attempts to open the readme for the weekly dataset
readme(tt_gh)
agencies <- tt_download(
tt_gh,
files = "agencies.csv"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.