Get Short GitHub Repo Name
Arguments
- repo
The URL of the repository (in the format "username/repo" or "https://github.com/username/repo")
Value
character string of short repo name
Examples
github_repo("scienceverse/papercheck")
#> [1] "scienceverse/papercheck"
github_repo("https://github.com/scienceverse/papercheck/")
#> [1] "scienceverse/papercheck"
github_repo("https://github.com/scienceverse/papercheck.git")
#> [1] "scienceverse/papercheck"