
Last chance! 50% off unlimited learning
Sale ends in
The GitHub REST API is a powerful tool that allows developers to interact with GitHub programmatically. It provides a set of endpoints that allows a user to create integration, retrieve data, and automate workflows related to GitHub repositories. It is a means by which users can interact with GitHub without directly using a web interface.
getGitRepoStart(repo_name, out.format = "%Y-%m-%d")getGitRepoChange(repo_name, out.format = "%Y-%m-%d")
date of creation of repository as a character
date of the last update of repository as a character
name of the repository
date output format
The two functions utilize the GitHub REST API to extract important temporal information about a GitHub repository.
- the getGitRepoStart function is used to retrieve the date a GitHub repository was first created.
- the getGitRepoChange function retrieves the date a GitHub repository was last updated.
# \donttest{
# Use default date format
getGitRepoStart(repo_name = "oobianom/quickcode")
# Specify date format
getGitRepoStart(repo_name = "oobianom/quickcode", out.format = "%j|%Y")
getGitRepoStart(repo_name = "oobianom/quickcode", out.format = "%D|%j")
# }
# \donttest{
getGitRepoChange(repo_name = "oobianom/shinyStorePlus", out.format = "%d-%b-%Y")
getGitRepoChange(repo_name = "oobianom/r2social", out.format = "%Y/%m/%d")
# }
Run the code above in your browser using DataLab