This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Digest the Link header in a paginated result. | |
#' | |
#' Converts the Link header from a monolithic string to a usable data.frame. | |
#' | |
#' The GitHub API automatically paginates when the number of requested items | |
#' exceeds the number of items per page. When this occurs, the result returned | |
#' by the server will include a Link header that provides the URLs for other | |
#' pages of results, such as the next page and the last page. These assorted | |
#' URLs are catenated in a single string and this function converts that | |
#' information into a data.frame that is useful for traversing the pages. |