This functions checks, if URL is not a link to the raw Github README.md file. If doesn't, it extracts user and repo names from the URL and then fetches README.md URL using Github API v3.

github_readme_url(url)

Arguments

url

Github repo URL

Value

Dowload URL to README.md

Examples

github_readme_url("https://github.com/qinwf/awesome-r/")
#> [1] "https://raw.githubusercontent.com/qinwf/awesome-R/master/README.md"