commits: Commit data for the dplyr repo from github API

Description Usage Format Examples

Description

Commit data for the dplyr repo from github API

Usage

1

Format

JSON

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(dplyr)

# Show first 200 characters of JSON
commits %>% substr(1, 200) %>% writeLines

# Extract metadata for every commit
commits %>%   # single json document of github commits from dplyr
  gather_array %>%  # stack as an array
  spread_values(
    sha         = jstring("sha"),
    author      = jstring("commit", "author", "name"),
    author.date = jstring("commit", "author", "date")
  ) %>% head

sailthru/tidyjson documentation built on May 29, 2019, 12:59 p.m.