printing: print methods of the tt objects

Description Usage Arguments Value Examples

Description

In tidytuesdayR there are nice print methods for the objects that were used to download and store the data from the TidyTuesday repo. They will always print the available datasets/files. If there is a readme available, it will try to display the TidyTuesday readme.

Usage

1
2
3
4
5
## S3 method for class 'tt_data'
print(x, ...)

## S3 method for class 'tt'
print(x, ...)

Arguments

x

a tt_data or tt object

...

further arguments passed to or from other methods.

Value

used to show readme and list names of available datasets

used to show available datasets for the TidyTuesday

Examples

1
2
3
4
5
6
7
if(interactive()){
tt <- tt_load_gh("2019-01-15")
print(tt)

tt_data <- tt_download(tt, files = "All")
print(tt_data)
}

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