repurrrsive (version 1.0.0)

gh_users_json: Paths to GitHub data as JSON and XML

Description

Paths to GitHub data as JSON and XML

Usage

gh_users_json()

gh_repos_json()

gh_users_xml()

gh_repos_xml()

Arguments

Value

Local path to JSON or XML file containing GitHub data

See Also

Other GitHub data and functions: gh_repos, gh_users

Examples

Run this code
gh_users_json()
if (require("jsonlite")) {
  ghuj <- fromJSON(gh_users_json(), simplifyDataFrame = FALSE)
  identical(gh_users, ghuj)
}
gh_repos_json()
if (require("jsonlite")) {
  ghrj <- fromJSON(gh_repos_json(), simplifyDataFrame = FALSE)
  identical(gh_repos, ghrj)
}
gh_users_xml()
if (require("xml2")) {
  xml <- read_xml(gh_users_xml())
  xml
}
gh_repos_xml()
if (require("xml2")) {
  xml <- read_xml(gh_repos_xml())
  xml
}

Run the code above in your browser using DataCamp Workspace