tidy: Convert a 'gh_response' object to a tidied data.frame.

Description Usage Arguments Value Examples

View source: R/tidy.R

Description

The class gh_response is returned from gh::gh. The tidy function converts it from a list to a tibble.

Usage

1
2
3
4
tidy(x, ...)

## S3 method for class 'gh_response'
tidy(x, ...)

Arguments

x

The input to tidy.

...

Arguments passed to other methods or cases.

Value

a tibble.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# For labels
Labels <- gh_list_labels("lwjohnst86/test-githubr", tidied = FALSE)
Labels
tidy(Labels)
gh_list_labels("lwjohnst86/test-githubr")

Issues <- gh_list_issues("lwjohnst86/test-githubr", tidied = FALSE)
Issues
tidy(Issues)
gh_list_issues("lwjohnst86/test-githubr")

## End(Not run)

rostools/githubr documentation built on Aug. 17, 2020, 6:49 p.m.