Description Usage Format Examples
Commit data for the dplyr repo from github API
1 |
JSON
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.